databricks-cli/libs
Pieter Noordhuis 1c0d67f66c
Add fs.FS adapter for the filer interface (#422)
## Changes

This enables the use of `io/fs` functions `fs.Glob` and `fs.WalkDir`
with filers.

We can't use `fs.FS` as the standard interface instead of `filer.Filer` because:
1. It was made for reading from filesystems only, not writing
2. It doesn't take a context for the core functions

Therefore a wrapper will do.

## Tests

* Added unit tests to cover the adapter through a fake filer.
* Manually ran `fs.WalkDir` against both WSFS and DBFS filers.
2023-06-02 12:49:59 +00:00
..
auth Add profile on `databricks auth login` (#423) 2023-06-02 13:49:39 +02:00
cmdio Add readable console logger (#370) 2023-06-01 11:37:33 +02:00
databrickscfg Add profile on `databricks auth login` (#423) 2023-06-02 13:49:39 +02:00
errs Added ability for deferred mutator execution (#380) 2023-05-16 18:01:50 +02:00
filer Add fs.FS adapter for the filer interface (#422) 2023-06-02 12:49:59 +00:00
fileset Don't sync symlink folders (#205) 2023-02-15 17:02:54 +01:00
flags Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
git Fix tests for new repository name (#390) 2023-05-16 19:02:07 +02:00
locker Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
log Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
notebook Error out if notebook file does not exist locally (#261) 2023-03-21 18:13:16 +01:00
sync Sync: Gracefully handle broken notebook files (#398) 2023-05-23 12:10:15 +02:00
terraform Add bundle destroy command (#300) 2023-04-06 12:54:58 +02:00
testfile Refactor and cover edge cases in sync integration tests (#160) 2023-01-10 13:16:30 +01:00