Pathos v0.3.0 Release Notes
Release Date: 2020-07-01 // almost 4 years ago-
๐ Fixes
- โ Warnings in Swift 5.3
๐ New
- โ Added a new type
Metadata
, which represents information fromstat
(Darwin,
๐ง Linux). - โ Added API to retrieve
Metadata
. PathRepresentable.set(_:)
(permissions)
๐ Deprecations
๐ The following APIs are deprecated in favor of metadata access APIs.
size(atPath)
modificationTime(atPath:)
accessTime(atPath:)
- ๐
metadataChangeTime(atPath:)
PathRepresentable.size
PathRepresentable.modificationTime
PathRepresentable.accessTime
- ๐
PathRepresentable.metadataChangeTime
permissions(forPath:)
PathRepresentable.permissions
โ Removed adding/removing permissions in favor of directly setting it:
add(_:forPath:)
- ๐
remove(_:forPath:)
PathRepresentable.add(_:)
- ๐
PathRepresentable.remove(_:)
Previously symbolic links were referred to as "symbol" or "symbolic link" in
APIs. From this version on, they'll be referred to as "symlink". This resulted
in the following changes:createSymbolicLink(fromPath:toPath:)
->createSymlink(fromPath:toPath:)
PathRepresentable.createSymbolicLink(at:)
->PathRepresentable.createSymlink(at:)
readSymbolicLink(atPath:toPath)
->readSymlink(atPath:toPath)
PathRepresentable.readSymbolicLink()
->PathRepresentable.readSymlink()
FileType.symbolicLink
->FileType.symlink
๐ Carthage is no longer supported.
๐ฅ Breaking changes
Previously symbolic links were referred to as "symbol" or "symbolic link" in
APIs. From this version on, they'll be referred to as "symlink". This resulted
in the following breaking changes:exists(atPath:followSymbol:)
->exists(atPath:followSymlink:)
PathRepresentable.exists(followSymbol:)
->PathRepresentable.exists(followSymlink:)
copyFile(fromPath:toPath:followSymbolicLink:checkSize:)
->copyFile(fromPath:toPath:followSymlink:checkSize:)
PathRepresentable.copy(to:followSymbolicLink:checkSize:)
->PathRepresentable.copy(to:followSymlink:checkSize:)
c0a33d66a22521493e8ef30a40306800442ba46100ad15e6682172e369a06976 0.3.0.tar.gz 5f28bcbc7f4f1c773ac5287a250ae92d034c32a5021b36fbdaa21249538ec7b5 0.3.0.zip