Swiftpack.co - Package - shotastage/Fileable.swift

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

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

Fix inaccessible method - 2019-01-16 01:38:31

Fix bugs - 2019-01-16 01:34:25

  • Fix internal inaccessible level

  • Make bundled file method nullable

Add enhancements - 2019-01-15 04:24:28

  • Implement get bundle file path method

  • Support both String and URL type as a path param

  • Separate platform specific method as a service

  • Support making multiple directory at once

  • Add path absolute or relative detector

Fix building scheme failure & deployment target issue - 2018-11-14 05:39:02

Fix building scheme failure & deployment target issue

Fix building scheme failure - 2018-11-14 05:18:34

Fix building scheme failure for Carthage build system.

Rename Fileable object to Path - 2018-11-13 17:37:12

  • Rename Fileable object to Path
  • Path.pwd is now support setter enabling move directory
  • Path object automatically set self path as home directory when path initializer is "~".
  • Introduce iOSDir ios directory list
  • Introduce UnixFS unix-based OS FS tree list - Now under construction -

List Contents & issue fix - 2018-10-26 06:13:22

1.0.8

  • Fileable("path/to/dir").ls has been implemented

You can get contents of specific directory as an array.


  • Fix issue Fileable("/path/to/dir").isFile returns TRUE #1

In this issue, isFile property does not return proper result.

Expected Result

Fileable("path/to/directory").isFile => False

Practical Result

Fileable("path/to/directory").isFile => True

Fully compatible with FileableGo API - 2018-08-30 03:03:20

Rename Filekit to Fileable. - 2017-10-24 16:33:40

Add compile target. - 2017-10-19 02:17:44

- 2017-10-19 02:08:34

Fix iOS target version issue. - 2017-10-19 01:44:05

Fix Xcode project file to success managing with Carthage. - 2017-10-18 13:45:44

Testing for Carthage - 2017-10-18 13:27:33

init release - 2017-09-03 18:34:11