Skip to content

IOS save to path results in no file #266

Open
@alpha0010

Description

@alpha0010

Upon upgrading from 0.10.13 to 0.10.14, saving to a specified file on IOS has stopped working.

let fullPath = RNFetchBlob.fs.dirs.DocumentDir + '/test.txt';
let res = await RNFetchBlob
  .config({ path: fullPath })
  .fetch('GET', 'https://raw.githubusercontent.com/joltup/rn-fetch-blob/master/.gitignore');
console.warn(fullPath);
console.warn(res.path());
console.warn(res.info());

Under both versions, the first two logs give the same result (something like [...]/Library/Developer/CoreSimulator/Devices/F3CE7938-1974-467C-8183-C1F98AC74CCE/data/Containers/Data/Application/8F3721D5-7CC6-4CEC-8D96-1AB6B4CB26E6/Documents/test.txt) and the last yields an object with the appropriate information (including status: 200).

If I navigate to [...]/Documents/ folder when the app is built with 0.10.13, text.txt exists. However, under 0.10.14, the folder remains empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions