File: megatools-ls.txt

package info (click to toggle)
megatools 1.11.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 740 kB
  • sloc: ansic: 7,279; sh: 135; makefile: 3
file content (135 lines) | stat: -rw-r--r-- 2,864 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
megatools-ls(1)
===============

NAME
----
megatools ls - List files stored in the cloud


SYNOPSIS
--------
[verse]
'megatools ls' [-e] [-h] [--header] [-l] [-R] [-n] [<remotepaths>...]


DESCRIPTION
-----------

Lists files stored on Mega.nz, exports public download links.


OPTIONS
-------

--export::
-e::
	For all files that are going to be listed, also display
	public download link with file key.
+
*NOTE*: Folders export doesn't work yet.

--human::
-h::
	Display file sizes in a human readable format.

--header::
	For long list format, display header describing all 
	listed columns.

--long::
-l::
	List additional information about listed filesystem nodes.
	Node handle, owner, node type, file size, and the last 
	modification date.

--recursive::
-R::
	List directories recursively. This is the default if no
	paths are specified.

--names::
-n::
	Show only names of nodes within the directory. This option 
	has effect only if you specified a single path on a command 
	line.

--print0::
-0::
	Separate file names with NULs instead of new lines.

include::auth-options.txt[]
include::basic-options.txt[]

<remotepaths>::
	One or more remote filesystem paths to list. If path points to
	a directory, contents of the directory and the directory
	itself is listed. When `--names` is given, only the contents
	of the directory is listed.

	If path points to a file, the file itself is listed.

	If omitted, the entire remote filesystem is listed recursively.

EXAMPLES
--------

* List all files:
+
------------
$ megatools ls

/Contacts
/Inbox
/Root
/Root/README
/Root/bigfile
/Trash
------------


* List all files in the /Root, recursively and with details:
+
------------
$ megatools ls -l /Root

3RsS2QwJ                2             - 2013-01-22 12:31:06 /Root
2FFSiaKZ    Xz2tWWB5Dmo 0          2686 2013-04-15 08:33:47 /Root/README
udtDgR7I    Xz2tWWB5Dmo 0    4405067776 2013-04-10 19:16:02 /Root/bigfile
------------


* List all files in the /Root, recursively and with details, show only file names:
+
------------
$ megatools ls -ln /Root

2FFSiaKZ    Xz2tWWB5Dmo 0          2686 2013-04-15 08:33:47 README
udtDgR7I    Xz2tWWB5Dmo 0    4405067776 2013-04-10 19:16:02 bigfile
------------


* Export download links:
+
------------
$ megatools ls -e /Root/README

https://mega.nz/#!OFFRlbgR!k5rWmLp3mxB0gsq07Ii67PLd9L0wq4KondFLDlfH3Uw /Root/README
------------


* List files in a more human readable format:
+
------------
$ megatools ls -hnl --header /Root/README
   
===================================================================================
Handle      Owner       T          Size Mod. Date           Filename
===================================================================================
2FFSiaKZ    Xz2tWWB5Dmo 0       2.6 KiB 2013-04-15 08:33:47 README
------------



include::remote-paths.txt[]

include::footer.txt[]