benten remove
目的
- リポジトリのデータを一部消去します (登録名を指定)。
Warning
事前にログイン認証を行う必要があります。
概要
- リポジトリとローカルストレージにあるデータを比較し、ローカルストレージ側にないファイルをリポジトリ側で消去します。
利用例
- Help
$ benten.py remove -h usage: benten remove [-h] [--current_directory [CURRENT_DIRECTORY]] [--flag_veto_init] register_basename positional arguments: register_basename register_basename optional arguments: -h, --help show this help message and exit --current_directory [CURRENT_DIRECTORY], -c [CURRENT_DIRECTORY] current directory --flag_veto_init, -v flag to veto init_index
- ファイル消去の例
$ benten.py list ### benten list ### [LocalStorage::authorize] access_token = b2f1db85266043759ced20a1b5053fb9 { "repository_directory":"/SPring-8/BL14B2/test", "register_name_select_list":[], "mode":"file", "full_path":false, "recursive":false, "file_list":[ { "name":"test.json", "status":"normal", "type":"file", "register_name":"/SPring-8/BL14B2/test/test" }, { "name":"test.system.json", "status":"normal", "type":"file", "register_name":"/SPring-8/BL14B2/test/test" }, { "name":"test.txt", "status":"deleted", "type":"file", "register_name":"/SPring-8/BL14B2/test/test" } ] } $ benten.py remove test ### benten remove ### [LocalStorage::authorize] access_token = b2f1db85266043759ced20a1b5053fb9 { "directory_local_storage_removed_list":[], "file_list":[ { "size":44, "name":"/SPring-8/BL14B2/test/test.txt", "time":"2018-08-15 18:14:05", "hash":"4cdb2c555c08a9d787a2e61103dff0f8", "uuid_name":"9d832d73-724d-4cd1-89fa-58211e6ef36e" } ] } $ benten.py list ### benten list ### [LocalStorage::authorize] access_token = b2f1db85266043759ced20a1b5053fb9 { "repository_directory":"/SPring-8/BL14B2/test", "register_name_select_list":[], "mode":"file", "full_path":false, "recursive":false, "file_list":[ { "name":"test.json", "status":"normal", "type":"file", "register_name":"/SPring-8/BL14B2/test/test" }, { "name":"test.system.json", "status":"normal", "type":"file", "register_name":"/SPring-8/BL14B2/test/test" } ] }