Skip to content

v0.2.0

Compare
Choose a tag to compare
@leepc12 leepc12 released this 06 Aug 22:07
· 102 commits to master since this release
ffe95cc

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.

Added CLI sub-command for each new method.

  • See details with autouri --help.
  • Sub-command find to wrap AutoURI(uri_dir).find_all_files().
  • Sub-command rmdir to wrap AutoURI(uri_dir).rmdir().

Added

  • pre-commit for 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]