Go to file
Shota Shimazu 26bb36d008
Update CHANGELOG.md
2018-11-14 14:17:32 +09:00
Documentation Change logo. 2017-10-25 01:31:44 +09:00
Fileable.xcodeproj fix archive error 2018-11-14 14:13:46 +09:00
Sources revise 2018-11-14 12:58:18 +09:00
Tests fix archive error 2018-11-14 14:13:46 +09:00
.gitignore revise 2018-10-26 14:38:21 +09:00
.gitlab-ci.yml Init commit. 2017-04-03 01:36:11 +09:00
.swift-version upgrade Swift version 2018-10-23 11:17:10 +09:00
.travis.yml fix ci config 2018-10-26 13:31:43 +09:00
CHANGELOG.md Update CHANGELOG.md 2018-11-14 14:17:32 +09:00
Fileable.podspec upgrade pod version 2018-11-14 02:26:31 +09:00
LICENSE Update LICENSE 2018-11-14 02:38:06 +09:00
Package.swift Rename lib name. 2017-10-25 01:28:50 +09:00
README.md update readme 2018-10-26 15:18:43 +09:00
TODO.md Update TODO.md 2018-10-27 02:35:46 +09:00

README.md

Fileable

Build Status Carthage compatible Version iOS 10+ Linux supported Swift 4

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

Installation

CocoaPods

You can install this library via Cocoapods just putting text described below to Podfile.

pod 'Fileable'

Carthage

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

github "shotastage/Fileable"

⌘ APIs

Function or Computed property
static var pwd: String Get current directory path.
static var home: String Get home directory path.
var ls: [String]? Get contents of specific directory.
var isFile: Bool Check the file exists or not.
var isDir: Bool Check the directory exists or not.
var ext: String Get file extension.
static func cd(path: String) throws Change directory like a cd command.
static func mkdir(path: String) throws Make directory.
func rm(target: String) throws Remove directory or file.
func mv(to toPath: String) throws Move file or directory.
func touch(at: 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.