Commit d710e34
To check if parent dir exists, use /namespace call instead of /tape/locality (#106)
* To check if parent dir exists, use /namespace call instead of /tape/locality
Fixes #105
* Fix unit test
* New function is_dir() interfered with the output of create_path()
* Typo was fixed in ada but should be fixed in unit test as well, to match
* Removing `get_locality` function
* The function used the /tape API call to check whether an object existed. This is not the best call to do that; the namespace call is better for that. Also, there has been a recent change in dCache that affects how this API call works, breaking Ada.
* The last remaining call to this function was not really necessary, because the `case` statement below it already catches the case where a path does not exist.
* Not using `is_dir` because the path might be a file... `is_dir` only returns true for a directory.
* Fix integration test: use is_dir in test_ada_mkdir instead of get_locality
---------
Co-authored-by: Haili Hu <hailihu@gmail.com>1 parent c899e42 commit d710e34
3 files changed
Lines changed: 36 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1100 | 1100 | | |
1101 | 1101 | | |
1102 | 1102 | | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
1103 | 1119 | | |
1104 | 1120 | | |
1105 | 1121 | | |
| |||
1313 | 1329 | | |
1314 | 1330 | | |
1315 | 1331 | | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1322 | 1343 | | |
1323 | | - | |
| 1344 | + | |
1324 | 1345 | | |
1325 | 1346 | | |
1326 | | - | |
1327 | | - | |
1328 | | - | |
1329 | 1347 | | |
1330 | 1348 | | |
1331 | 1349 | | |
| |||
1393 | 1411 | | |
1394 | 1412 | | |
1395 | 1413 | | |
1396 | | - | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | 1414 | | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | 1417 | | |
1418 | 1418 | | |
1419 | 1419 | | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
1426 | 1420 | | |
1427 | 1421 | | |
1428 | 1422 | | |
| |||
2317 | 2311 | | |
2318 | 2312 | | |
2319 | 2313 | | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
2320 | 2318 | | |
2321 | 2319 | | |
2322 | 2320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
0 commit comments