GoogleCloudPlatform / GoogleCloudPlatform/gsutil

gsutil mv - Not removing local directories after moved to buckets

Open
#812 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

I'm creating below directory structure

mkdir -p a/b/c
touch a/1 a/b/2

gsutil -D mv ./a gs://sftp-transfer

Once the command is executed successfully, I expect there should be no directories in the local machine since it is moved. But the directories a,b,c are all present.

The documentation says, mv will copy the contents to the bucket and remove them in the local. But in my case, the local directories are not removed.

Also on the other hand, the empty directory "c" is also not appearing in the bucket destination.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.