Python pathlib-style classes for cloud storage services such as Amazon S3, Azure Blob Storage, and Google Cloud Storage.
ignore
parameter to CloudPath.copytree
in order to match shutil
API. (Issue #145, PR #272)list_objects_v2
in S3Client
. (Issue #155, PR #302).exists
to check for a raw bucket/container (no additional path components). (Issue #291, PR #302)glob
/rglob
patterns. (Issue #274, PR #276)stat
on base class method instead of property to follow pathlib
(Issue #234, PR #250)AnyPath
subclass of AnyPath
(Issue #246, PR #251)-00
(Issue #238, PR #249)py.typed
file so mypy runs (Issue #243, PR #248)absolute
to CloudPath
(does nothing as CloudPath
is always absolute) (PR #230)resolve
to CloudPath
(does nothing as CloudPath
is resolved in advance) (Issue #151, PR #230)relative_to
to CloudPath
which returns a PurePosixPath
(Issue #149, PR #230)is_relative_to
to CloudPath
(Issue #149, PR #230)is_absolute
to CloudPath
(always true as CloudPath
is always absolute) (PR #230)read_text
parameters to cached file (PR #230)exist_ok
parameter to touch
(PR #230)missing_ok
parameter to unlink
, which defaults to True. This diverges from pathlib to maintain backward compatibility (PR #230)CloudPath
objects not working. (Issue #223, PR #224)glob
and rglob
functions by using pathlib's globbing logic rather than fnmatch. (Issue #154)iterdir
to not include self. (Issue #15)suffix
and suffixes
on a cloud path with no suffix. (Issue #120)parents
return type from list to tuple, to better match pathlib's tuple-like _PathParents
return type.AWS_ENDPOINT_URL
environment variable to set the endpoint_url
for S3Client
. (PR #193)BlobProperties
type hint causes import error if Azure dependencies not installed.rmtree
on nested directories for Google Cloud Storage and Azure Blob Storage. (Issue #184, PR #185)cloudpathlib
for missing botocore
dependency when not installed with S3 dependencies. (PR #168)