Releases: mxcl/Path.swift
Releases · mxcl/Path.swift
0.15.0
Path(_ url:) -> Path(url:)
0.14.0
Merge pull request #34 from mxcl/symlinks
Symlink funcs & support `NSURL` file-refs
0.13.0
Merge pull request #33 from mxcl/bundle-private-frameworks
Bundle.privateFrameworks
0.12.1
Merge pull request #27 from mxcl/codecov
More coverage
0.12.0
-
Many fixes due to increasing our code coverage
-
mtime
/ctime
return nil
now instead of UNIXTimeZero since Linux often has no mtime
and chaining the times to get one you want is more explicit:
foo.mtime ?? foo.ctime ?? Date(timeIntervalSince1970: 0)
0.11.1
Merge pull request #25 from mxcl/rename
Refactor rename -> rename(to:)
0.11.0
Added rename
try Path.root.bar.rename("foo")
0.10.0
extension
is now savvy to certain (hard-coded) double extensions, eg. .tar.gz
- Added
Entry.files
so you can do:
for file in Path.root.ls().files {
//…
}
0.9.0
Inlinable extensions for FileHandle
.
0.8.0
Bundle functions all return Path
, not Path?
.
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.