Cloud-Migration-Tool
Cloud-Migration-Tool copied to clipboard
delete-source does not delete posix folders
config.json:
{
"source": {
"backend": "posix",
"base_path": "/tmp/sourceDir1"
},
"destination": {
"backend": "posix",
"base_path": "/tmp/destDir1"
},
"status": {
"backend": "posix",
"base_path": "/tmp/statusDir1"
},
"cloudmig": {
"buckets": {"/": "/"},
"worker-threads": 10,
"delete-source": true,
"create-directories": true
}
}
source directory structure: /tmp/sourceDir1/myfolder/myfile.txt
Actual results:
- myfolder & myfile.txt are copied to the destination correctly.
- /tmp/sourceDir1/myfolder/myfile.txt file is removed from source directory, as expected.
- /tmp/sourceDir1/myfolder/ still exists in source directory
cloudmig output:
"cloudmig:3880:[INFO][Deleting Source]: Starting deletion of the migration's " 'source...\n' 'unlink: Is a directory\n' 'cloudmig:3880:[ERR][Deleting Source File] Could not delete the file ' '/myfolder/ : DPL_FAILURE.\n' "cloudmig:3880:[INFO][Deleting Source]: Deletion of the migration's source " 'done.\n'