gcsfs
gcsfs copied to clipboard
Is there an async version of touch?
Exactly as the question sounds. Is there an async version of touch?
To create an empty file, you can do
await fs._pipe_file(path, b"")
I don't think any async backends support the extended use of touch to update the timestamp or truncate to a specific length; but you can probably update metadata separately (also backend-specific).