https://github.com/optiroc/swift-fileutils
A Swift package that provides functionality for efficient file operations.
https://github.com/optiroc/swift-fileutils
Last synced: about 1 year ago
JSON representation
A Swift package that provides functionality for efficient file operations.
- Host: GitHub
- URL: https://github.com/optiroc/swift-fileutils
- Owner: Optiroc
- License: mit
- Created: 2023-12-03T19:54:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-03T19:59:06.000Z (over 2 years ago)
- Last Synced: 2025-02-09T19:51:48.774Z (over 1 year ago)
- Language: Swift
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift FileUtils
A Swift package that provides functionality for efficient file operations.
WIP: Documentation, features and names are a work in progress.
## Adding FileUtils as a dependency
To use the FileUtils library in a SwiftPM project, add the following line to the dependencies in your Package.swift file:
```
.package(url: "https://github.com/Optiroc/swift-fileutils", from: "0.1.0"),
```
Include "FileUtils" as a dependency for your target:
```
.target(name: "", dependencies: [
.product(name: "FileUtils", package: "swift-fileutils"),
]),
```
Finally, add `import FileUtils` to your source code.
## Test data
Large test files are omitted from the repository. To successfully run the tests, get `Apache.log` and `HPC.log` from [here](https://zenodo.org/records/8196385) and place in `Tests/FileUtilsTests/Data`.
---
created by david lindecrantz and distributed under the terms of the [mit license](./LICENSE).