Cloud-Migration-Tool icon indicating copy to clipboard operation
Cloud-Migration-Tool copied to clipboard

delete-source does not delete posix folders

Open mattfoxvog opened this issue 9 years ago • 1 comments

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:

  1. myfolder & myfile.txt are copied to the destination correctly.
  2. /tmp/sourceDir1/myfolder/myfile.txt file is removed from source directory, as expected.
  3. /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'

mattfoxvog avatar Jan 22 '16 09:01 mattfoxvog