v0.2.0
v0.2.0
Added two methods to all URI classes.
find_all_files(): Find all files (not sub-directories) on a directory.rmdir(): Delete all outputs on a directory.- local path:
rm -rf-like deletion on the directory itself. gs://,s3://: Find all files prefixed with the directory and delete them all.
- local path:
Added CLI sub-command for each new method.
- See details with
autouri --help. - Sub-command
findto wrapAutoURI(uri_dir).find_all_files(). - Sub-command
rmdirto wrapAutoURI(uri_dir).rmdir().
Added
pre-commitfor better linting with Python Black style.
Unlocking locked files on Google Cloud Storage buckets.
If you see any failures related to timeout of a lock file (.lock) on gs://, then you can use the following command lines to unlock/delete it. Deleting a lock is generally safe if you don't have multiple processes trying to write on it.
$ gsutil retention temp release [LOCK_FILE]
$ gsutil rm -f [LOCK_FILE]