Closed iemejia closed 11 years ago
I mean not fail, but the system auto completes ~ to the user path, i don't know which other paths are auto completed like that.
it happens with relative paths too, for example:
$ catho/catho.py add iPad2 ../../../../Users/rgamez/Documents/iPad $ catho/catho.py find * iPad2 (90, 'org.pdf', 1329581153, 1545291, '../../../../Users/rgamez/Documents/iPad', '7cba495b5c510958d2d94ad14be7fe9f7e5771b9')
I suggest add and extra parameter on the add option for setting a base path:
$ catho/catho.py add name path [basepath]
And an extra functionality for modifying that basepath:
$ catho/catho.py mv name [basepath]
I don't think moving to a different basepath would be so important, as it's a simple replacement of the metadata, maybe we should find a more generic way to edit the metadata something like -set-meta key, value.
When saving catalog, save the full path in the metadata. And only relative paths in the catalog table. Currently it works for ., but it fails with the system auto completed paths (e.g. ~)