You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first time I run this, it seems to work fine however, the second time I run this, it will fail. I'm not sure why.
My file path is created like this:
function mkICloudFilePath(fileName?: string) {
if (!defaultIPath) return new Error("No default iCloud folder found");
const iCloudUrl = CloudStore.getICloudURL().then((url) => {
console.log("iCloudUrl", url);
});
console.log("defaultIPath", defaultIPath);
return CloudStore.PathUtils.join(defaultIPath, `Documents/${fileName}`);
}
It seems like the file is downloaded but won't persist in the iCloud folder for some reason and then the second time I try to access it it says it doesn't exit. With a WARN Possible Unhandled Promise Rejection (id: 1):
I'm also seeing the progress indicator from the onICloudDocumentsUpdateGathering events showing progress 0 before it dies.
If the file is already downloaded does it die again? I'm confused on what download does vs startDownloadingUbiquitousItem and I'm not sure which should be used. I need to ensure the file exists so I can read it in and process it.
The text was updated successfully, but these errors were encountered:
I have a setup like this:
The first time I run this, it seems to work fine however, the second time I run this, it will fail. I'm not sure why.
My file path is created like this:
It seems like the file is downloaded but won't persist in the iCloud folder for some reason and then the second time I try to access it it says it doesn't exit. With a
WARN Possible Unhandled Promise Rejection (id: 1):
I'm also seeing the progress indicator from the
onICloudDocumentsUpdateGathering
events showing progress 0 before it dies.If the file is already downloaded does it die again? I'm confused on what download does vs
startDownloadingUbiquitousItem
and I'm not sure which should be used. I need to ensure the file exists so I can read it in and process it.The text was updated successfully, but these errors were encountered: