gcsfs icon indicating copy to clipboard operation
gcsfs copied to clipboard

Is there an async version of touch?

Open vedantroy opened this issue 1 year ago • 1 comments

Exactly as the question sounds. Is there an async version of touch?

vedantroy avatar Aug 01 '24 06:08 vedantroy

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).

martindurant avatar Aug 01 '24 13:08 martindurant