yonat / DirectoryUploader

Automatically upload all files saved in source directory, and then delete the uploaded files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DirectoryUploader

Monitors a directory and automatically detects new files added to it. Uploads all files to a target URL, and cleans up afterwards.

Swift Version Build Status License CocoaPods Compatible
Platform PRs Welcome

Installation

CocoaPods:

pod 'DirectoryUploader'

Manually:

Copy Sources/* to your Xcode project.

Usage

let uploader = DirectoryUploader(sourceDirectory: docDir, targetURL: endpointURL)
// now save files to docDir, and they will be automatically uploaded to endpointURL.

Meta

@yonatsharon

https://github.com/yonat/DirectoryUploader

About

Automatically upload all files saved in source directory, and then delete the uploaded files.

License:MIT License


Languages

Language:Swift 78.5%Language:Ruby 21.5%