I'm trying to create a log.txt file inside a folder of a device, but I get this error: NSCocoaErrorDomain Code=512 "The file “log.txt” couldn’t be ...
I'm trying to create a log.txt file inside a folder of a device, but I get this error: NSCocoaErrorDomain Code=512 "The file “log.txt” couldn’t be ...
I have to rename some files in a directory in the Documents directory. I'm trying with URLResourceValues: After setting resourceValues.name I see t ...
My app creates a working file in the Application Support folder at launch, and subsequently saves that file in a user preferred folder (specified in p ...
I have the following code in an intent handler for a widget I am creating: When I run the code in an iphone 13 pro simulator with ios 15.5, I get t ...
I'm working with filemanager. So far I'm able to initialize my directory but when I try to save data there, the error i get is "error: Cannot create f ...
So I need to get the data from a google sheet (which I'm trying to generate the link for, not sure), but I have a dummy link which works. I wrote this ...
When the user is confronted with an unexpected error, I'm providing them with the option to send the error log contents as an email body of an NSShari ...
I want to persist data, images and otherwise. I read that saving to files is especially recommended for larger data. I followed relevant parts of this ...
I'm looking for an iOS API that allows accessing a user-selected folder in place (without importing it). It seems to be possible with native framework ...
I would like my Swift app to be able to write a file (myDebug.log) that is viewable by a user on their iOS device. The code I am using is below. Whil ...
I am seeking help to understand why a tutorial I am following is not working for me. I am running macOS 12.3.1, Xcode 13.3.1. The project is in Object ...
) today I have a problem and I can't find an easy solution. With: it's simple to find out if a file exist. Actually I have the file name but don' ...
I have a path like : file:///private/var/mobile/Containers/Data/Application/80C93A3C-DFB5-4756-8DC8-7ED34469EA11/Documents/allFiles/81B5D904-CCEC- ...
I learn swift and faced with problem: when i try write pdf file in document directory nothing happened. Code: When i start this code, i don't see a ...
I'm playing with iCloud Drive Documents/ubiquitous containers to share documents between devices my app is installed on. So far, everything seems to ...
I have been using Swift's [enumerator(at:includingPropertiesForKeys:options:)]1 to find all files within a given base path and create arrays for diffe ...
I am trying to obtain the name of a file (JSON format but saved without an extension) within the last directory of a given path. Each file is saved wi ...
Good Day. I receive a message with an image URL. Whenever I receive the image URL I have to show it through local notification. Like this However, ...
It seems that if there is already a file saved to a particular path within FileManager, calling this code to write a new file to the same path does no ...
I need a way of checking when a file was last opened. I tried by creating a custom FileAttributeKey and setting that to the current Date, but when I g ...