Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

writeStream() does not create file if it doesn't exist? #491

Closed
@lll000111

Description

@lll000111

Android: https://github.com/wkh237/react-native-fetch-blob/blob/master/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java#L324

iOS: https://github.com/wkh237/react-native-fetch-blob/blob/master/ios/RNFetchBlob/RNFetchBlob.m#L219

Right now writeStream() starts by checking if a file exists and/or is a directory.

I'm not sure about the behavior on "file does not exist". Shouldn't the default for a write stream be to create the file if it doesn't exist?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions