Go to file
Shota Shimazu 827a35515c Add compile target to iOSFileKit. 2017-10-19 11:16:23 +09:00
FileKit.xcodeproj Add compile target to iOSFileKit. 2017-10-19 11:16:23 +09:00
Sources/FileKit Fix certificate related issue. 2017-10-19 11:07:29 +09:00
Tests Init commit. 2017-04-03 01:36:11 +09:00
iOSFileKit Fix iOS deployment target issue. 2017-10-19 10:43:04 +09:00
iOSFileKitTests Fix iOS deployment target issue. 2017-10-19 10:43:04 +09:00
.gitignore Add Xcode Project. 2017-10-18 22:44:36 +09:00
.gitlab-ci.yml Init commit. 2017-04-03 01:36:11 +09:00
FileKit.podspec Fix iOS deployment target issue. 2017-10-19 10:43:04 +09:00
Info.plist Fix iOS deployment target issue. 2017-10-19 10:43:04 +09:00
LICENSE Add license. 2017-10-18 21:31:36 +09:00
Package.swift Fix iOS deployment target issue. 2017-10-19 10:43:04 +09:00
README.md Add compile target to iOSFileKit. 2017-10-19 11:16:23 +09:00

README.md

🗂 FileKit

Carthage compatible iOS 10+ Linux supported Swift 4

FileKit is file utilities for Swift. It enables to mange files or directories efficiently and easily.

Installation

CocoaPods

At now, we aim to register this library to CocoaPods official repository. However, this library is currently under construction process. Thus, you have to configure Podfile manually to get this library from this github repository.

pod 'https://github.com/Labbiness/FileKit.git'

Carthage

You can use this library with Carthage by simply putting this text to Cartfile.

github "Labbiness/FileKit"

⌘ APIs

Function
func pwd() -> String Get current directory path as a string.
func home() -> Strings Get home directory path.
func isFile(file: String) -> Bool Check the file exists or not.
func isDir(path: String) -> Bool Check the directory exists or not.
func cd(path: String) throws Change directory like a cd command.
func mkdir(path: String) throws Make directory.
func rm(target: String) throws Remove directory or file.
func mv(from fromPath: String, to toPath: String) Move file or directory.
func touch(_ path: String) throws Create empty file.

License

FileKit is licensed under the MIT. You can use this library free of charge. Please include copyright notie in your program. See LICENSE for detail.