Monitors a directory and automatically detects new files added to it. Uploads all files to a target URL, and cleans up afterwards.
pod 'DirectoryUploader'
Copy Sources/*
to your Xcode project.
let uploader = DirectoryUploader(sourceDirectory: docDir, targetURL: endpointURL)
// now save files to docDir, and they will be automatically uploaded to endpointURL.