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
Niall McCormack
12c7b348d6
added hooks for common directories - Documents, Caches and Application Support
2019-01-19 00:24:20 +08:00
Max Howell
b4c92f86dc
Fix tests on Linux
2019-01-17 18:23:22 -05:00
Max Howell
cac06d89fb
Linux
2019-01-17 17:31:29 -05:00
Max Howell
4af0ee3983
Missing functions
2019-01-17 17:31:14 -05:00
Max Howell
97e9cbaa8f
.some
2019-01-17 17:12:54 -05:00