-
Notifications
You must be signed in to change notification settings - Fork 1k
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
bug: Error: "Parent folder doesn't exist" when using FileSystem #2667
Comments
Can you provide a sample app? |
Can confirm this, writing a file doesn't work for me either under iOS 13.4. Same error message. |
People, when I ask for a sample app is not because I don't believe, it's to reproduce and fix it faster, so comments confirming don't help. |
https://github.com/quique24/file-demo Here it is the demo app. It works fine with the created project but to reproduce the error is specifically in @capacitor/ios 2.0.0-beta.1 I run: |
Thanks for the sample project, but the issue is already fixed, will be available on next release |
i am having these versions |
And it looks to me that writing in subfolders is now broken. |
I solve this issue by add this parameter: Filesystem will auto add any missing parent folders for us.
|
This works. Really appreciate this, thanks |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
npx cap doctor
output:💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 1.5.2
@capacitor/core: 1.5.2
@capacitor/android: 1.5.2
@capacitor/ios: 1.5.2
Installed Dependencies:
@capacitor/cli 1.4.0
@capacitor/core 1.4.0
@capacitor/android 1.4.0
@capacitor/ios 2.0.0-beta.1
Affected Platform(s)
Current Behavior
When using FileSystem writeFile() gets an error "Parent folder doesn't exist"
My code was working perfectly till I update xcode
I am testing on IOS this happens in the phone as in the simulator from xcode
Expected Behavior
The file should be written with the path of the image
Sample Code or Sample Application Repo
async convertImage(imageUri) {
const { Camera, Filesystem } = Plugins;
}
deleteImage(imgEntry, position) {
this.images.splice(position, 1);
}
Reproduction Steps
I am testing on IOS this happens in the phone as in the simulator from xcode
With the capacitor camera I get the original photo path and the I send it to the convertImage(). Works fine until the writeFile() returns the "Parent folder doesn't exist" error
Other Technical Details
npm --version
output: 6.9.0node --version
output: 10.16.0pod --version
output (iOS issues only): 1.9.1Other Information
I am testing on IOS this happens in the phone as in the simulator from xcode
The text was updated successfully, but these errors were encountered: