Go to file
Shota Shimazu eb54851525 revise 2018-08-30 12:00:49 +09:00
Documentation Change logo. 2017-10-25 01:31:44 +09:00
Fileable.xcodeproj revise 2018-08-30 12:00:49 +09:00
Fileable.xcworkspace revise 2018-07-07 00:35:04 +09:00
Sources revise 2018-08-30 12:00:49 +09:00
Tests add test files 2018-08-27 15:02:09 +09:00
.gitignore Rename lib name. 2017-10-25 01:28:50 +09:00
.gitlab-ci.yml Init commit. 2017-04-03 01:36:11 +09:00
.swift-version Rename lib name. 2017-10-25 01:28:50 +09:00
.travis.yml update iphone simulator id 2018-07-07 09:26:53 +09:00
Fileable.podspec Rename lib name. 2017-10-25 01:28:50 +09:00
LICENSE Add license. 2017-10-18 21:31:36 +09:00
Package.swift Rename lib name. 2017-10-25 01:28:50 +09:00
README.md Update README.md 2018-08-27 22:46:40 +09:00

README.md

FileKit

Build Status Carthage compatible iOS 10+ Linux supported Swift 4

Fileable 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/shotastage/Fileable.git'

Carthage

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

github "shotastage/Fileable"

⌘ APIs

Function or Computed property
var pwd: String Get current directory path as a string.
var home: Strings Get home directory path.
var isFile: Bool Check the file exists or not.
var isDir: Bool Check the directory exists or not.
func ext(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

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