Go to file
Shota Shimazu 1bf0af80bb revise 2021-07-30 09:06:43 +09:00
Documentation Change logo. 2017-10-25 01:31:44 +09:00
Fileable.xcodeproj Add xcode project file 2021-07-30 08:50:13 +09:00
Sources Add xcode project file 2021-07-30 08:50:13 +09:00
Tests WIP: Fix bugs (#5) 2019-01-16 10:33:10 +09:00
.gitignore Add xcode project file 2021-07-30 08:50:13 +09:00
.swift-version upgrade swift version 2020-02-15 01:24:52 +09:00
.travis.yml revise 2021-07-30 09:06:43 +09:00
CHANGELOG.md WIP: Fix bugs (#5) 2019-01-16 10:33:10 +09:00
Fileable.podspec Upgrade podspec version 2018-11-14 14:19:59 +09:00
LICENSE Update LICENSE 2019-01-16 12:21:52 +09:00
Package.swift update copyright 2020-02-15 01:27:14 +09:00
README.md Remove old migrator 2021-07-30 08:45:22 +09:00
TODO.md update todo 2019-01-15 13:20:39 +09:00

README.md

Fileable

Build Status Carthage compatible Version iOS 10+ Swift 5 FOSSA Status

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.

FOSSA Status