MEGAMKDIR(1)

πŸ“¦ version 1.10.3, in ubuntu jammy

✨ MEGAMKDIR β€” it's giving "make a folder on the cloud" πŸ’–

okay bestie, welcome to megamkdir, part of the Megatools Manual (that's the MEGATOOLS(1) girlies). she makes folders on your Mega.nz account. that's it. that's the gig. but she does it flawlessly. πŸŽ€


🌸 SYNOPSIS 🌸

megamkdir <remotepaths>...
megamkdir /Contacts/<contactemail>

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, megamkdir creates folders on Mega.nz. slay. πŸ’…

and here's the special little plot twist: if you make a new folder under /Contacts, you're actually adding a <contactemail> to your contacts list. like, it's a folder but it's also a friendship. it's giving multitasking main character energy. ✨


πŸ’œ OPTIONS πŸ’œ

  • -u <email>, --username <email> β€” your account username (it's an email, bestie, you know this)
  • -p <password>, --password <password> β€” your account password πŸ”
  • --no-ask-password β€” never ask for a password interactively. like, don't even try it. don't come for her. πŸ™ˆ
  • --reload β€” reload the filesystem cache. refresher moment. 🌈
  • --limit-speed <speed> β€” set the max allowed upload and download speed in KiB/s. this option overrides config file settings. 0 means no limit. and heads up β€” when ParallelTransfers > 1, the upload speed limit gets applied to each transfer individually. per-transfer. each one. individually. πŸ’€
  • --proxy <proxy> β€” use a proxy server to connect to mega.nz. this option overrides config file settings. more info lives in the libcurl documentation at https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html. some acceptable values are:
    • none : disable proxy if it was enabled in the config file.
    • socks5://localhost:9050 : local SOCKSv5 proxy server
    • socks5h://localhost:9050 : local SOCKSv5 proxy server with DNS handled by the proxy
  • --config <path> β€” load configuration from a file πŸ“
  • --ignore-config-file β€” disable loading .megarc
  • --debug [<options>] β€” enable debugging of various aspects of the megatools operation. you may enable multiple debugging options separated by commas (eg. --debug api,fs). the available options are:
    • http: dump HTTP request/response details (can be used to debug connection/proxy issues)
    • api: dump Mega.nz API calls
    • fs: dump Mega.nz filesystem (may require --reload to actually print something)
    • cache: dump cache contents
    • tman: dump transfer manager events
  • --version β€” show version information ⭐
  • <remotepaths> β€” one or more remote directories to create.
  • <contactemail> β€” valid email address of a contact you want to add.

πŸ“ EXAMPLES πŸ“

  • Create new folder:
$ megamkdir /Root/MyNewFolder
$ megals /Root
/Root
/Root/MyNewFolder
  • Add new contact to your contacts list:
$ megamkdir /Contacts/some@email.com

🧚 REMOTE FILESYSTEM 🧚

the Mega.nz filesystem is represented as a tree of nodes of various types. nodes are identified by an 8 character node handle (eg. 7Fdi3ZjC). the structure of the filesystem is not encrypted. πŸ‘€

Megatools maps that node tree structure to traditional filesystem paths (eg. /Root/SomeFile.DAT).

NOTE: by the nature of Mega.nz storage, several files in a directory can have the same name. to allow access to such files, the names of conflicting files are extended by appending a dot and their node handle, like this:
/Root/conflictingfile
/Root/conflictingfile.7Fdi3ZjC
/Root/conflictingfile.mEU23aSD

you need to be aware of several special folders, bestie:

  • /Root β€” writable directory representing the root of the filesystem. πŸ‘‘
  • /Trash β€” trash directory where the Mega.nz web client moves deleted files. this directory is not used by megatools when removing files.
  • /Inbox β€” not sure. πŸ’€ (yes, that's literally what the manpage says. iconic honestly.)
  • /Contacts β€” directory containing subdirectories representing your contacts list. if you want to add contacts to the list, simply create a subdirectory named after the contact you want to add.
  • /Contacts/<email> β€” directories representing individual contacts in your contacts list. these directories contain folders that others shared with you. all shared files are read-only, at the moment.

🌈 SEE ALSO 🌈

megatools(7), megarc(5), megadf(1), megadl(1), megaget(1), megals(1), megamkdir(1), megaput(1), megareg(1), megarm(1), megacopy(1).


πŸ‘‘ MEGATOOLS πŸ‘‘

part of the megatools(7) suite. the whole friend group. 🫢


πŸ’€ BUGS πŸ’€

report bugs at https://github.com/megous/megatools or megous@megous.com. she's not perfect, she's just a girl. 😭


πŸ’– AUTHOR πŸ’–

Megatools was written by Ondrej Jirman <megous@megous.com>, 2013-2016.

official website is http://megatools.megous.com.


and that's the whole page, bestie ✨ this was megatools 1.10.2, dated 04/15/2020, and it's the MEGAMKDIR(1) girlie herself. go make some folders. slay. πŸ’…πŸŽ€

πŸ“¦ where this page comes from