fs: make localfs fsspec-compliant

It is not completely fsspec compliant, but it's upto the level
required by our FSSpecWrapper.

Next thing to tackle would be to merging `fs.base.FileSystem`
and `fs.fsspec_wrapper.FSSpecWrapper` into one filesystem
that is lazily-loaded and is itself fsspec-compliant.
This commit is contained in:
Saugat Pachhai (सौगात)
2022-04-21 12:44:55 +03:00
committed by Ruslan Kuprieiev
parent fed0bfb2b3
commit 23e62a9ff7
3 changed files with 136 additions and 85 deletions
+1 -1
View File
@@ -783,7 +783,7 @@ def test_add_optimization_for_hardlink_on_empty_files(tmp_dir, dvc, mocker):
m = mocker.spy(LocalFileSystem, "is_hardlink")
stages = dvc.add(["foo", "bar", "lorem", "ipsum"])
assert m.call_count == 4
assert m.call_count == 8
assert m.call_args != call(tmp_dir / "foo")
assert m.call_args != call(tmp_dir / "bar")