We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.suffix
Path("/dir").suffix returns the empty string, and we should do the same.
Path("/dir").suffix
S3Path("s3://bucket/dir").suffix results in:
S3Path("s3://bucket/dir").suffix
--------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-21-161bf2e9d1ca> in <module> ----> 1 S3Path("s3://bucket/dir").suffix ~/miniconda3/envs/zamba-algorithms/lib/python3.6/site-packages/cloudpathlib/cloudpath.py in suffix(self) 522 @property 523 def suffix(self): --> 524 return self._dispatch_to_path("suffix") 525 526 @property ~/miniconda3/envs/zamba-algorithms/lib/python3.6/site-packages/cloudpathlib/cloudpath.py in _dispatch_to_path(self, func, *args, **kwargs) 470 471 if isinstance(path_version, collections.abc.Sequence) and isinstance( --> 472 path_version[0], PurePosixPath 473 ): 474 return [ IndexError: string index out of range
The text was updated successfully, but these errors were encountered:
Fix suffix and suffixes for no suffix. Fixes #120
5147513
Noting that this situation also results in an IndexError for the .suffixes property.
IndexError
.suffixes
Sorry, something went wrong.
Fix suffix and suffixes for no suffix (#209)
4ddcf84
* Fix suffix and suffixes for no suffix. Fixes #120 * Have parents return as a tuple Co-authored-by: Jay Qi <jayqi@users.noreply.github.com>
Successfully merging a pull request may close this issue.
Path("/dir").suffix
returns the empty string, and we should do the same.S3Path("s3://bucket/dir").suffix
results in:The text was updated successfully, but these errors were encountered: