microsoft / microsoft/AzureStorageExplorer
Feature: Upload directory without including directory in target path
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 452
- Forks
- 92
- Avg merge
- 15h 20m
- Merged PRs (30d)
- 3
Description
Preflight Checklist
- I have installed the latest version of Storage Explorer.
- I have checked existing resources, including the troubleshooting guide and the release notes.
- I have searched for similar issues.
Problem
I want to upload a folder without the root folder. For example I'm uploading everything in a folder: C://MyStuff to a container: blob/mycontainer. I want the container to mirror the contents of my folder (recursively). Currently "mystuff" will be added to the path.
blob/mycontainer/mystuff/myfiles.txt
I want it to be
blob/mycontainer/myfiles.txt (Imagine more files here of course)
More detailed example (:
blob/mycontainer/mystuff/
myfiles.txt
anotherfile.doc
image.jpg
folder1/
fileinfolder1.txt
Desired Folder Structure in Azure:
blob/mycontainer/ <-- Without mystuff folder
myfiles.txt
anotherfile.doc
image.jpg
folder1/
fileinfolder1.txt
Screenshot of todays dialog, where I believed that the destination directory would rename the uploaded directory, but the actual destination will be: /EntwinePointTile_1.1/3/ept-data when I want all the data directly in the /EntwinePointTile_1.1/3/3/ directory
Desired Solution
Enable a checkbox for the --as-subdir=false property already existing in azcopy. This makes azcopy not upload the "root" (selected-folder) folder as a folder in Azure, it just adds the contents of the folders directly, WHILE keeping the folder hierarchy below the "uploaded" folder.
Alternatives and Workarounds
Start the command, cancel it and manually run the azcopy command with the --as-subdir=false
Additional Context
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the upload dialog shown in the issue and the AzCopy invocation used for directory uploads. Check how the existing --as-subdir=false option could be exposed as a checkbox while preserving the selected folder's hierarchy. Done means an upload can omit the selected root folder and place its contents directly in the destination, including nested files and folders.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100