View Single Post
Old 07-03-2013, 08:47 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
For people that use mega.co.nz

Curious who uses it for storage?

If you do a good command line tool for easily using their api is handy called megatools

http://megatools.megous.com/

here is a little bash script i wrote to get a list of your files and the urls

Code:
#!/bin/bash

# get a list of mega.co.nz download links for uploaded files
# requires megatools - https://github.com/megous/megatools

files=$(megals | grep "Root/")

if which megals> /dev/null 2>&1; then

   for file in $files; do
      echo $file | cut -c7-
      megals -e $file | awk '{print $1}'
   done

else
   echo "this requires megatools"
   exit 1
fi


__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote