For people that use mega.co.nz

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #1

    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.
Working...