Replies: 2 comments
-
use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the feedback. Yes, the docs aren't exhaustive at this point as I've still been trying to figure out how things should work. I have been thinking about |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hfs.delete(file) throws when file not exists
Other library behaviors
fse.removeSync
silent when not existsAnd deleting-files did not mention
when file not exists
https://github.com/humanwhocodes/humanfs/blob/main/docs/file-operations.md#deleting-files
From the tips part, looks like read(json text bytes) / write / isFile / append allows none existing file.
others delete / size / lastModified / move / copy did not mention.
but size / lastModified / move / copy semantically requires file existance.
the rest
delete
, if it's designed to not allow delete none-exists file, a tip would be nice.Beta Was this translation helpful? Give feedback.
All reactions