Releases: pelagornis/swift-file
Releases · pelagornis/swift-file
Swift File v1.3.1
Swift File v1.3.0
What's Changed
- Support swift 5.7 -> 6.2
Swift File v1.2.3
What's Changed
- no changed
Swift File v1.2.2
What's Changed
- no changed
Swift File v1.2.1
What's Changed
- Fixed a bug where
allFilesandallFolderswould not return items from subdirectories when searching recursively. - Added an
includeHiddenparameter toallFilesandallFoldersto optionally include dotfiles in the search results. - Improved the
empty()method by renaming its parameter toincludingHiddenfor better clarity. - Enhanced test coverage to ensure file and folder traversal is reliable.
Swift File v1.2.0
What's Changed
Major Additions & Improvements
-
Existence Check
- Added
exists()method toFileandFolderfor checking if a file or folder actually exists.
- Added
-
List All Files and Folders
- Added
allFiles(recursive:)andallFolders(recursive:)methods toFolderfor retrieving all files and subfolders (with recursive option).
- Added
-
Symbolic Link Support
- Added
isSymbolicLink(),createSymbolicLink(to:), anddestinationOfSymbolicLink()methods toStorefor symbolic link management.
- Added
-
File/Folder Permissions
- Added
getPermissions()andsetPermissions(_:)methods toStorefor reading and setting POSIX permissions.
- Added
-
File/Folder Change Watch
- Added
watch(eventHandler:)method toStorefor file/folder change notifications
(macOS/iOS: usesDispatchSource, other platforms: not supported, logs warning).
- Added
-
swift-log Integration
- Integrated swift-log
Loggerinto all major source files (File,Folder,FileSystem,Child,Path,FileError,Store).
All print statements replaced with logger.
- Integrated swift-log
-
Enhanced Test Coverage
- Added test cases for new features: existence check, allFiles/allFolders, symbolic link, permissions, and watch.
-
README.md Update
- Added usage examples and documentation for all new features (in English).
Other
- All code comments and documentation unified in English.
- Internal refactoring and code quality improvements.
Swift File 1.1.0
What's Changed
- Projects name changed
let package = Package(
...
dependencies: [
.package(url: "https://github.com/pelagornis/swift-file.git", from: "1.1.0")
],
...
)plfile-> swift-file
PLFile 1.0.9
- no changes
PLFile v1.0.8
What's Changed
- PLFile additional support for iOS and tvOS, watchOS
PLFile v1.0.7
- no changes