Max Howell
e5188bf93b
Still not fixed
2019-07-21 18:58:49 -04:00
Max Howell
62073d584b
Remove Entry since it is barely worthwhile sugar
2019-07-21 17:37:10 -04:00
Max Howell
621d1b0160
Remove @dynamicMember generally
2019-07-21 17:37:10 -04:00
Max Howell
d2bb2a1fdc
Path.find()
2019-07-21 17:22:38 -04:00
Max Howell
0e061f9cc8
Adds kind fixes deleting broken symlinks
...
`delete()` and other functions would check `exists` to do certain behaviors, but `exists` will validate a symlink if the entry is a symlink, thus instead we check if the path is an actual entry now instead.
2019-03-18 19:47:49 -04:00
Max Howell
8b371fa5d2
Allow initialization from Substring etc.
2019-03-06 15:55:51 -05:00
Max Howell
f4c2c75aa1
Add Bundle.executable
2019-02-17 10:05:30 -05:00
Max Howell
476cdc1461
Add Path.components
2019-02-15 13:38:36 -05:00
Max Howell
c9d300a7b6
Path(_ url:) -> Path(url:)
2019-02-11 20:40:27 -05:00
Max Howell
097e020735
There are no usernames on iOS etc.
2019-02-11 15:11:22 -05:00
Max Howell
164cd2b413
Fix iOS, etc.
2019-02-11 14:19:27 -05:00
Max Howell
709c3fb99d
Symlink funcs & support NSURL file-refs
...
* Also removes most `NSString` usage
* Also does more thorough testing in some places
* Also adds
* Fixes `Path?(_:)` resolving symlinks in some cases
2019-02-11 14:04:06 -05:00
Max Howell
8469565b06
Bundle.privateFrameworks
2019-02-09 13:24:57 -05:00
Max Howell
ed45d10179
Docs updates; CocoaPods 16.0 release; [ci skip]
2019-02-08 09:14:23 -05:00
Max Howell
8248354a80
Some documentation improvements
2019-02-01 15:18:15 -05:00
Max Howell
7f5340bc19
More coverage
...
Though I can hardly test these functions, at least we can verify they run
without crashing etc.
2019-02-01 10:17:37 -05:00
Max Howell
c456081e65
More coverage
2019-01-31 14:26:09 -05:00
Max Howell
62ea0d47b3
Fixes & increased code coverage
2019-01-31 12:15:31 -05:00
Max Howell
49ef073e34
Refactor rename -> rename(to:)
2019-01-31 10:15:39 -05:00
Max Howell
c6e840b9b6
Add rename
2019-01-31 08:39:54 -05:00
Max Howell
eb34ac4af8
Add overwrite parameter to move(into:)
2019-01-31 08:37:32 -05:00
Max Howell
19c0c19bb6
Entry.files defaults to all files
2019-01-28 12:04:47 -05:00
Max Howell
ee1f46954c
Fixes #20
...
[skip ci]
2019-01-28 11:05:51 -05:00
Jaap Wijnen
50bb319619
added extension to initialize filehandle from path
2019-01-27 22:57:19 +01:00
Max Howell
83c83dcaba
Bundle extensions don’t return optional Paths
...
Rationale: Paths are not guaranteed to exist, the Bundle functions return optional if the path doesn't exist. So we'll provide a sensible default instead and you need to check the result exists at some point instead.
This makes more elegant chains, the chain will fail when you operate on it, but you don’t have to do a check for optional first. Or risk a bang.
2019-01-26 15:20:32 -05:00
Max Howell
93e2701950
Docs tweaks
...
[ci skip]
2019-01-26 15:10:52 -05:00
Max Howell
859164e59f
Dynamic Members
2019-01-26 13:23:25 -05:00
Max Howell
44be1c45a9
Add Path.ctime
2019-01-26 13:17:39 -05:00
Max Howell
99b948f9c1
Minor documentation fixes
...
[ci skip]
2019-01-26 13:17:39 -05:00
Max Howell
356a1b3ac2
Delete is a noop if file doesn’t exist
...
Closes #11 .
2019-01-26 11:05:31 -05:00
Max Howell
6d8712f4d6
Remove mkpath, add mkdir(.p)
2019-01-26 11:05:10 -05:00
Max Howell
8744b68709
Make nodoc work for Codable
2019-01-26 10:59:20 -05:00
Max Howell
4b16dac3bf
Improved documentation; Fixes #12
2019-01-25 20:46:37 -05:00
Max Howell
b613449232
Making this static will fix documentation location
...
[ci skip]
2019-01-25 12:23:54 -05:00
Max Howell
b0bf0d0074
This is not yet fixed in Linux Swift 5.0
2019-01-25 10:55:02 -05:00
Max Howell
fdff3bcc05
Swift 5 --warnings
2019-01-24 15:02:06 -05:00
Max Howell
80960f5876
Don’t overwrite a file with a directory
2019-01-24 14:44:01 -05:00
Max Howell
9eca479f7b
Fix mtime return so it is as per doc contract
2019-01-24 14:43:45 -05:00
Max Howell
de4fb3ae47
Remove replaceContents, user can use String.write
2019-01-22 17:57:28 -05:00
Max Howell
58d026c8a9
Fix copy(into:) overwrite mode
...
Seems like Linux Foundation has a bug
I checked, seems fixed in Swift 5. But added a swift version check se we can verify and if not report the bug.
2019-01-22 15:26:04 -05:00
Max Howell
43d3e0a745
Improve docs
2019-01-21 14:30:12 -05:00
Luciano Almeida
7be264a38e
Adding convenience extensions on Path->Bool
2019-01-20 22:13:13 -02:00
Max Howell
920f007660
Fix Linux testEnumerationSkippingHiddenFiles()
2019-01-20 17:32:39 -05:00
Luciano Almeida
d8ea357459
Adding ls -a like functionality to Path.ls()
2019-01-20 16:23:40 -05:00
Max Howell
152ad8a8ae
Implementations of CommonDirs for Linux
2019-01-20 13:03:38 -05:00
Max Howell
a98ba37e59
Merge pull request #1 from itsallmememe/master
...
Common Directories
2019-01-20 12:30:29 -05:00
Max Howell
3eda9a9741
100% documentation please
2019-01-19 14:36:27 -05:00
Max Howell
29149da72b
Use FileManager.homeDirectory where possible
2019-01-19 14:35:42 -05:00
Max Howell
cd30e89808
Remove TemporaryDirectory
...
This violates the responsibility of this framework.
2019-01-19 14:20:12 -05:00
Max Howell
f99e7b5ae7
Test iOS, tvOS & watchOS
2019-01-18 13:37:28 -05:00