-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
FileSystem Create empty file - touch
like
#1127
Comments
What you've got looks great. You can omit the |
I am reluctant to add an extra function for this 'cause I don't want developers to accidentally create an empty file before they start writing. Just writing is sufficient. |
Alright cool, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm looking for something along the lines of a
touch
. My current implementation is this:This does create an empty file. Is this the 'right' way? Also, should there be a first party function for creating an empty file?
My use case creating an empty
file.jpeg
so that Androids Intent for the camera can write the final pixels into that file.The text was updated successfully, but these errors were encountered: