📹 C# Functionality for performing various S3 Bucket Functions and downloading their recording files.
Created alongside the Camera Experiments repo.
✏️ Modify Program.cs to suit your setup.
bucketName
- your bucket name.
uploadFolder
- a folder within your bucket.
localFilePath
- where your local fiels reside.
🎯 Call any of the contained functions:
Files.UploadAllFilesInFolder
- Upload Files in a Folder.
Files.UploadAllFilesInAllFolders
- Traverses sub folders.
Files.CreateFileListAsJSON
- Create a JSON File List.
S3.UploadObjectFromFileAsync
- Upload from a File.
S3.UploadObjectFromStringAsync
- Create a file from a string.
S3.ListingObjectsAsync
- List Objects in Bucket or Folder.
S3.CopyObjectAsync
- Copy an Object.
S3.DeleteObjectAsync
- Delete an Object.
S3.MoveObjectAsync
- Copy then Delete an Object.
To execute, simply run S3BucketExperiments.exe
.
To run, you will need AWS Credentials in place, i.e. in ~/.aws/credentials
You will need to add execute permissions on the the main executable.
chmod +x S3BucketExperiments
Then to execute, run:
sudo ./S3BucketExperiments
🍴 Feel free to Fork / Branch / Modify, raise any Pull Requests for changes.
🦔 Built as part of .NET, IoT and Hedgehogs!