|
|
|
@ -39,7 +39,7 @@ Usage:
|
|
|
|
|
{1} index [--catalog=<path>] [--meta=<meta>...] [-acfuV] <name> <path>
|
|
|
|
|
{1} update [--catalog=<path>] [-acfuV] <name> <path>
|
|
|
|
|
{1} ls [--catalog=<path>] [-arVS] [<path>]
|
|
|
|
|
{1} find [--catalog=<path>] [-abVP] <term>
|
|
|
|
|
{1} find [--catalog=<path>] [-abdVP] [--path=<path>] <term>
|
|
|
|
|
{1} rm [--catalog=<path>] [-fV] <storage>
|
|
|
|
|
{1} tree [--catalog=<path>] [-aVS] [<path>]
|
|
|
|
|
{1} rename [--catalog=<path>] [-fV] <storage> <name>
|
|
|
|
@ -52,9 +52,11 @@ Usage:
|
|
|
|
|
Options:
|
|
|
|
|
--catalog=<path> Path to the catalog [default: {2}].
|
|
|
|
|
--meta=<meta> Additional attribute to store [default: ].
|
|
|
|
|
-p --path=<path> Start path.
|
|
|
|
|
-u --subsize Store size of directories [default: False].
|
|
|
|
|
-a --archive Handle archive file [default: False].
|
|
|
|
|
-f --force Do not ask when updating the catalog [default: False].
|
|
|
|
|
-d --directory Only directory (default: False).
|
|
|
|
|
-b --script Output script to manage found file(s) [default: False].
|
|
|
|
|
-S --sortsize Sort by size, largest first [default: False].
|
|
|
|
|
-c --hash Calculate md5 hash [default: False].
|
|
|
|
@ -153,7 +155,10 @@ def cmd_rm(args, noder, catalog, top):
|
|
|
|
|
|
|
|
|
|
def cmd_find(args, noder, top):
|
|
|
|
|
fromtree = args['--parent']
|
|
|
|
|
directory = args['--directory']
|
|
|
|
|
startpath = args['--path']
|
|
|
|
|
return noder.find_name(top, args['<term>'], script=args['--script'],
|
|
|
|
|
startpath=startpath, directory=directory,
|
|
|
|
|
parentfromtree=fromtree)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|