1megatools-mkdir(1) megatools-mkdir(1)
2
3
4
6 megatools mkdir - Create remote folder under your Mega.nz account
7
9 megatools mkdir <remotepaths>...
10 megatools mkdir /Contacts/<contactemail>
11
13 Creates folders on Mega.nz.
14
15 As a special case, by creating a new folder under /Contacts, you’re
16 adding a <contactemail> to your contacts list.
17
19 -u <email> , --username <email>
20 Account username (email)
21
22 -p <password> , --password <password>
23 Account password
24
25 --no-ask-password
26 Never ask interactively for a password
27
28 --reload
29 Reload filesystem cache
30
31 --limit-speed <speed>
32 Set maximum allowed upload and download speed in KiB/s. This
33 option overrides config file settings. 0 means no limit. When
34 using ParallelTransfers > 1, upload speed limit is applied to
35 each transfer individually.
36
37 --proxy <proxy>
38 Use proxy server to connect to mega.nz. This option overrides
39 config file settings. More information can be found in libcurl
40 documentation at ⟨https://curl.haxx.se/libcurl/c/CUR‐
41 LOPT_PROXY.html⟩. Some acceptable values are:
42
43 • none : Disable proxy if it was enabled in the config file.
44
45 • socks5://localhost:9050 : Local SOCKSv5 proxy server
46
47 • socks5h://localhost:9050 : Local SOCKSv5 proxy server with DNS
48 handled by the proxy
49
50 --netif <ifname|ip>
51 Network interface or local IP address used for outgoing connec‐
52 tions. You have to specify IP address bound to some of your lo‐
53 cal network interfaces, when specifying an IP address.
54
55 --ip-proto <proto>
56 Which IP protocol to prefer when connecting to mega.nz (v4, v6,
57 or any). This is just an advisory option. Megatools will re‐
58 solve mega.nz domain, and then use an A or AAAA record based on
59 the stated preference.
60
61 --config <path>
62 Load configuration from a file
63
64 --ignore-config-file
65 Disable loading .megarc
66
67 --debug [<options>]
68 Enable debugging of various aspects of the megatools operation.
69 You may enable multiple debugging options separated by commas.
70 (eg. --debug api,fs)
71
72 Available options are:
73
74 • http: Dump HTTP request/response details (can be used to debug
75 connection/proxy issues)
76
77 • api: Dump Mega.nz API calls
78
79 • fs: Dump Mega.nz filesystem (may require --reload to actually
80 print something)
81
82 • cache: Dump cache contents
83
84 • tman: Dump transfer manager events
85
86 --version
87 Show version information
88
89 <remotepaths>
90 One or more remote directories to create.
91
92 <contactemail>
93 Valid email address of a contact you want to add.
94
96 • Create new folder:
97
98 $ megatools mkdir /Root/MyNewFolder
99 $ megatools ls /Root
100 /Root
101 /Root/MyNewFolder
102
103 • Add new contact to your contacts list:
104
105 $ megatools mkdir /Contacts/some@email.com
106
108 Mega.nz filesystem is represented as a tree of nodes of various types.
109 Nodes are identified by a 8 character node handles (eg. 7Fdi3ZjC).
110 Structure of the filesystem is not encrypted.
111
112 Megatools maps node tree structure to a traditional filesystem paths
113 (eg. /Root/SomeFile.DAT).
114
115 NOTE: By the nature of Mega.nz storage, several files in the directory
116 can have the same name. To allow access to such files, the names of
117 conflicting files are extended by appending dot and their node handle
118 like this:
119
120 /Root/conflictingfile
121 /Root/conflictingfile.7Fdi3ZjC
122 /Root/conflictingfile.mEU23aSD
123
124 You need to be aware of several special folders:
125
126 /Root Writable directory representing the root of the filesystem.
127
128 /Trash Trash directory where Mega.nz web client moves deleted files.
129 This directory is not used by megatools when removing files.
130
131 /Inbox Not sure.
132
133 /Contacts
134 Directory containing subdirectories representing your contacts
135 list. If you want to add contacts to the list, simply create
136 subdirectory named after the contact you want to add.
137
138 /Contacts/<email>
139 Directories representing individual contacts in your contacts
140 list. These directories contain folders that others shared with
141 you. All shared files are read-only, at the moment.
142
144 megatools(1), megarc(5), megatools-df(1), megatools-dl(1), megatools-
145 get(1), megatools-ls(1), megatools-mkdir(1), megatools-put(1), mega‐
146 tools-reg(1), megatools-rm(1), megatools-copy(1).
147
149 Part of the megatools(1) suite of commands.
150
152 Report bugs to megatools@megous.com ⟨mailto:megatools@megous.com⟩ .
153 Your message will end up in a public archive, so be careful what you
154 say or send.
155
157 Megatools was written by Ondrej Jirman < megatools@megous.com
158 ⟨mailto:megatools@megous.com⟩ >, 2013-2019.
159
160 Official website is ⟨http://megatools.megous.com⟩.
161
162
163
164 26 January 2021 megatools-mkdir(1)