fsspec / universal_pathlib

pathlib api extended to use fsspec backends
MIT License
240 stars 42 forks source link

Fix touch exists_ok if file exists #262

Closed ap-- closed 1 month ago

ap-- commented 1 month ago

Close #216

This fixes behavior of touch. truncate should never be set on an existing file when using touch from the pathlib api. This also silently ignores an error when the filesystem does not support touching an existing file. (We could consider throwing a warning in this case)