Commit 58a3ddb
authored
add caches directory accesssor to FileSystem (#161)
motivation: accessing the caches directory from the FS is a common need and apears in several places in SwiftPM, extracing it out
changes:
* add cachesDirectory:AbsolutePath? to FileSystem protocol
* implement in LocalFileSystem using FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask)1 parent 05b9f1c commit 58a3ddb
File tree
2 files changed
+19
-0
lines changed- Sources/TSCBasic
- Tests/TSCUtilityTests
2 files changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| |||
317 | 320 | | |
318 | 321 | | |
319 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
320 | 327 | | |
321 | 328 | | |
322 | 329 | | |
| |||
622 | 629 | | |
623 | 630 | | |
624 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
625 | 636 | | |
626 | 637 | | |
627 | 638 | | |
| |||
870 | 881 | | |
871 | 882 | | |
872 | 883 | | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
873 | 888 | | |
874 | 889 | | |
875 | 890 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
471 | 475 | | |
472 | 476 | | |
473 | 477 | | |
| |||
0 commit comments