databricks-cli/libs/filer
Pieter Noordhuis 349e2aff40
Allow equivalence checking of filer errors to fs errors (#416)
## Changes

The pattern `errors.Is(err, fs.ErrNotExist)` is common to check for an
error type.

Errors can implement `Is(error) bool` with a custom equivalence checker.

## Tests

New asserts all pass in the integration test.
2023-05-31 20:47:00 +02:00
..
dbfs_client.go Make filer.Filer return fs.DirEntry from ReadDir (#415) 2023-05-31 14:22:26 +02:00
filer.go Allow equivalence checking of filer errors to fs errors (#416) 2023-05-31 20:47:00 +02:00
root_path.go Add Mkdir and ReadDir functions to filer.Filer interface (#414) 2023-05-31 11:11:17 +02:00
root_path_test.go Add Mkdir and ReadDir functions to filer.Filer interface (#414) 2023-05-31 11:11:17 +02:00
slice.go Abstract over file handling with WSFS or DBFS through filer interface (#135) 2022-12-14 15:37:14 +01:00
slice_test.go Abstract over file handling with WSFS or DBFS through filer interface (#135) 2022-12-14 15:37:14 +01:00
workspace_files_client.go Make filer.Filer return fs.DirEntry from ReadDir (#415) 2023-05-31 14:22:26 +02:00