Skip to content

Releases: mxcl/Path.swift

0.15.0

12 Feb 02:38
Compare
Choose a tag to compare
Path(_ url:) -> Path(url:)

0.14.0

11 Feb 20:43
be49fb9
Compare
Choose a tag to compare
Merge pull request #34 from mxcl/symlinks

Symlink funcs & support `NSURL` file-refs

0.13.0

11 Feb 20:16
6c84754
Compare
Choose a tag to compare
Merge pull request #33 from mxcl/bundle-private-frameworks

Bundle.privateFrameworks

0.12.1

31 Jan 21:29
6b52932
Compare
Choose a tag to compare
Merge pull request #27 from mxcl/codecov

More coverage

0.12.0

31 Jan 18:10
ec6c011
Compare
Choose a tag to compare
  • 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

31 Jan 17:26
ab9a70e
Compare
Choose a tag to compare
Merge pull request #25 from mxcl/rename

Refactor rename -> rename(to:)

0.11.0

31 Jan 15:08
889d825
Compare
Choose a tag to compare

Added rename

try Path.root.bar.rename("foo")

0.10.0

28 Jan 17:18
c432f71
Compare
Choose a tag to compare
  • 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

27 Jan 22:00
2394cc1
Compare
Choose a tag to compare

Inlinable extensions for FileHandle.

0.8.0

26 Jan 20:46
67f4e5f
Compare
Choose a tag to compare

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.