Comments (4)
Fixed here: #122
from files.
It took me 20 minutes of searching through the API know to about that!
I don't know why this is not supported!
from files.
Same here, .documents
and .library
are the fundamental needs.
from files.
Hi @JohnSundell can you please add this into the library for making .documents
and .library
available for iOS.
/// Extension below make the "library" and "documents" folder available for the iOS
#if os(iOS)
public extension Folder {
/// The current user's Documents folder
static var documents: Folder? {
do{
let url = try FileManager.default.url(
for: .documentDirectory,
in: .userDomainMask,
appropriateFor: nil,
create: true
)
return try? Folder(path: url.relativePath)
}catch{
return nil
}
}
/// The current user's Library folder
static var library: Folder? {
do{
let url = try FileManager.default.url(
for: .libraryDirectory,
in: .userDomainMask,
appropriateFor: nil,
create: true
)
return try? Folder(path: url.relativePath)
}catch{
return nil
}
}
}
#endif
from files.
Related Issues (20)
- 'NSWorkspace' is unavailable in Mac Catalyst HOT 3
- Examples are buggy HOT 2
- Using the Swift Package Manager - Getting Error HOT 2
- nameExcludingExtension removes all "." HOT 2
- Throwing function never throws
- How can I move a file to a new folder with a new name atomically?
- Subfolder on iOS is returning empty while on Mac returns content HOT 1
- Get File Size HOT 1
- Example of use with (or instead of) fileImporter?
- Is there a way to get file metadata such as modification date?
- Hidden subfolders are not listed in `subfolders` property HOT 1
- Unable to get hidden files
- "\" characters confuse "Folder.subfolders" HOT 2
- Usb
- This may reduce the quality of type information available
- Try? thread exception issue with XCode 14.3 and Release
- Heads-up: The next major version (5.0) will drop CocoaPods + Carthage support HOT 1
- Folder.documents doesn't seem to work HOT 7
- Folder(path: <path>) doesn't seem to work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from files.