Comments (3)
Yeah that one. You can import it if you depend on the whole of SwiftPM, but that's why I say I wouldn't recommend it since it imports a lot of other stuff, and Apple themselves say you shouldn't depend on libUtility.
Thanks for the report, I consider this an area I may in future make a separate library for, in the mean time feel free to vendor the file!
from path.swift.
Hi, TemporaryDirectory
was public, but I removed it: cd30e8.
I did this because I didn't consider it within the responsibility boundary of this library. An entire library could be dedicated to temporary directories (and files) and thus would have better API and a more thorough implementation.
A good example of a better implementation is SwiftPM’s Utility library. Not that I think anyone should use that, but it's better for this particular area.
Thanks.
from path.swift.
That makes sense thanks 👍
For SwiftPM, you refer to this file? TemporaryFile.swift
we can close this then 😉
Cheers
from path.swift.
Related Issues (20)
- tiny typo
- suggestion: Entry.files(withExtension) could make the extension optional HOT 13
- [Swift 5] `swift build` fails because it has a minimum platform requirement HOT 5
- Refactor HOT 3
- Drop `@dynamicMember` HOT 1
- Add `mimeType` property? HOT 1
- Issue with CLion. HOT 1
- Incorrect framework name when using CocoaPods HOT 1
- [Feature request] Add .read_text() and read_bytes() HOT 3
- suggestion: Additional convenience on Entries HOT 2
- error: 'Path' is not a member type of 'Path' HOT 4
- Path.home.find(): Value of type 'Any' has no member 'extension' HOT 5
- Output for ls() is unsorted, but ls in the command line is sorted alphabetically by default
- import Path // mxcl/Path.swift ~> 1.0.0 not working with Xcode 11.4 HOT 6
- How I can properly add Path to swift manifest file HOT 4
- suggestion: check out the swift proposal
- Suggestion: Add option for .find() to ignore hidden files HOT 2
- Add conformances to support Swift ArgumentParser? HOT 2
- Path conflicts with SwiftUI.Path, no way to disambiguate HOT 6
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 path.swift.