|
| 1 | + |
| 2 | +=== foo.txt -> local |
| 3 | +>>> [CLI] fs cp foo.txt local/existing-from-local/ |
| 4 | +foo.txt -> local/existing-from-local/foo.txt |
| 5 | + |
| 6 | +>>> [CLI] fs cp foo.txt local/nonexistent/mydir/ |
| 7 | +Error: no such directory: local/nonexistent/mydir |
| 8 | + |
| 9 | +Exit code: 1 |
| 10 | + |
| 11 | +=== foo.txt -> dbfs:/tmp/fs-cp-test-[UNIQUE_NAME] |
| 12 | +>>> [CLI] fs cp foo.txt dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/existing-from-local/ |
| 13 | +foo.txt -> dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/existing-from-local/foo.txt |
| 14 | + |
| 15 | +>>> [CLI] fs cp foo.txt dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/nonexistent/mydir/ |
| 16 | +Error: no such directory: /tmp/fs-cp-test-[UNIQUE_NAME]/nonexistent |
| 17 | + |
| 18 | +Exit code: 1 |
| 19 | + |
| 20 | +=== foo.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME] |
| 21 | +>>> [CLI] fs cp foo.txt dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/existing-from-local/ |
| 22 | +foo.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/existing-from-local/foo.txt |
| 23 | + |
| 24 | +>>> [CLI] fs cp foo.txt dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/nonexistent/mydir/ |
| 25 | +Error: no such directory: /Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/nonexistent |
| 26 | + |
| 27 | +Exit code: 1 |
| 28 | + |
| 29 | +=== dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> local |
| 30 | +>>> [CLI] fs cp dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt local/existing-from-dbfs/ |
| 31 | +dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> local/existing-from-dbfs/foo.txt |
| 32 | + |
| 33 | +>>> [CLI] fs cp dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt local/nonexistent/mydir/ |
| 34 | +Error: no such directory: local/nonexistent/mydir |
| 35 | + |
| 36 | +Exit code: 1 |
| 37 | + |
| 38 | +=== dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> dbfs:/tmp/fs-cp-test-[UNIQUE_NAME] |
| 39 | +>>> [CLI] fs cp dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/existing-from-dbfs/ |
| 40 | +dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/existing-from-dbfs/foo.txt |
| 41 | + |
| 42 | +>>> [CLI] fs cp dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/nonexistent/mydir/ |
| 43 | +Error: no such directory: /tmp/fs-cp-test-[UNIQUE_NAME]/nonexistent |
| 44 | + |
| 45 | +Exit code: 1 |
| 46 | + |
| 47 | +=== dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME] |
| 48 | +>>> [CLI] fs cp dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/existing-from-dbfs/ |
| 49 | +dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/existing-from-dbfs/foo.txt |
| 50 | + |
| 51 | +>>> [CLI] fs cp dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/src/foo.txt dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/nonexistent/mydir/ |
| 52 | +Error: no such directory: /Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/nonexistent |
| 53 | + |
| 54 | +Exit code: 1 |
| 55 | + |
| 56 | +=== dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> local |
| 57 | +>>> [CLI] fs cp dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt local/existing-from-volume/ |
| 58 | +dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> local/existing-from-volume/foo.txt |
| 59 | + |
| 60 | +>>> [CLI] fs cp dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt local/nonexistent/mydir/ |
| 61 | +Error: no such directory: local/nonexistent/mydir |
| 62 | + |
| 63 | +Exit code: 1 |
| 64 | + |
| 65 | +=== dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> dbfs:/tmp/fs-cp-test-[UNIQUE_NAME] |
| 66 | +>>> [CLI] fs cp dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/existing-from-volume/ |
| 67 | +dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/existing-from-volume/foo.txt |
| 68 | + |
| 69 | +>>> [CLI] fs cp dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/nonexistent/mydir/ |
| 70 | +Error: no such directory: /tmp/fs-cp-test-[UNIQUE_NAME]/nonexistent |
| 71 | + |
| 72 | +Exit code: 1 |
| 73 | + |
| 74 | +=== dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME] |
| 75 | +>>> [CLI] fs cp dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/existing-from-volume/ |
| 76 | +dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/existing-from-volume/foo.txt |
| 77 | + |
| 78 | +>>> [CLI] fs cp dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/src/foo.txt dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/nonexistent/mydir/ |
| 79 | +Error: no such directory: /Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/nonexistent |
| 80 | + |
| 81 | +Exit code: 1 |
| 82 | + |
| 83 | +=== Copies landed in the existing directories |
| 84 | +>>> cat local/existing-from-local/foo.txt |
| 85 | +abc |
| 86 | + |
| 87 | +>>> [CLI] fs cat dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/existing-from-local/foo.txt |
| 88 | +abc |
| 89 | + |
| 90 | +>>> [CLI] fs cat dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/existing-from-local/foo.txt |
| 91 | +abc |
| 92 | + |
| 93 | +>>> cat local/existing-from-dbfs/foo.txt |
| 94 | +abc |
| 95 | + |
| 96 | +>>> [CLI] fs cat dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/existing-from-dbfs/foo.txt |
| 97 | +abc |
| 98 | + |
| 99 | +>>> [CLI] fs cat dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/existing-from-dbfs/foo.txt |
| 100 | +abc |
| 101 | + |
| 102 | +>>> cat local/existing-from-volume/foo.txt |
| 103 | +abc |
| 104 | + |
| 105 | +>>> [CLI] fs cat dbfs:/tmp/fs-cp-test-[UNIQUE_NAME]/existing-from-volume/foo.txt |
| 106 | +abc |
| 107 | + |
| 108 | +>>> [CLI] fs cat dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/existing-from-volume/foo.txt |
| 109 | +abc |
0 commit comments