Friday, May 10, 2024
HomeiOS Developmentios - Error Area=NSCocoaErrorDomain Code=512 and Error Area=NSPOSIXErrorDomain Code=20 "Not a listing"....

ios – Error Area=NSCocoaErrorDomain Code=512 and Error Area=NSPOSIXErrorDomain Code=20 “Not a listing”. React native expo


i am simply attempting out tweaking a the code from a tutorial to obtain recordsdata with expo-file-system and expo-sharing and i am encountering this error.

Full error is:

Didn’t create storage listing.Error Area=NSCocoaErrorDomain Code=512 “The file “my-app” couldn’t be saved within the folder “@person”.” UserInfo={NSFilePath=/var/cellular/Containers/Knowledge/Utility/C54DC1D3-033B-41DC-89D3-4541119F717D/Paperwork/ExponentExperienceData/@person/my-app, NSUnderlyingError=0x3017c0390 {Error Area=NSPOSIXErrorDomain Code=20 “Not a listing”}}

The error comes from calling this snippet which is in a useEffect:

createDownloadResumable(
     'https://www.w3.org/WAI/ER/checks/xhtml/testfiles/assets/pdf/dummy.pdf',
     documentDirectory + 'dummy.pdf',
     {},
     callback
);

then i obtain it and save the file in my storage utilizing expo-sharing with shareAsync(documentDirectory+'dummy.pdf');

It labored nicely the primary few occasions i examined it and tweaked it, and when i used to be fiddling round, i deleted the folder created by expo-sharing with shareAsync(documentDirectory+'dummy.pdf');. I assumed that was the issue so i restored the folder in my iphone however the error nonetheless persists.

If that is not the problem what’s inflicting this? somebody please assist?

Additionally i am testing it on expo-go if that is related



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments