Saugat Pachhai (सौगात)
3f5757a0a5
dvc.objects: move hashing functions to dvc.objects
...
This commit moves `HashedStreamReader`/`get_hash_file`/`file_md5`
into `dvc.objects.hash`.
The `get_hash_file` has been renamed to `hash_file`.
This also copies `relpath` and `is_exec` to the `dvc.fs.utils`.
2022-05-12 20:33:18 +03:00
Karthikeyan Singaravelan
b8d738220d
Revert other tests and test only glob exception.
2022-05-11 18:37:09 +03:00
Ruslan Kuprieiev
89b40afee7
fs: make constructor closer to fsspec ( #5911 )
...
* fs: don't use repo for jobs/hash_jobs
* fs: local: exists: use fsspec's LocalFileSystem
* fs: make constructor comply with fsspec
2021-05-12 22:03:09 +03:00
Ruslan Kuprieiev
b0fd40f12c
dvc: rename tree -> fs ( #5461 )
2021-02-13 15:40:44 +02:00
Ruslan Kuprieiev
9ce6bce9b6
tree: move get_hash to object id logic ( #5460 )
2021-02-13 04:22:29 +02:00
Ruslan Kuprieiev
b75aab4d85
utils: don't use unnecessary exists() calls ( #5423 )
...
* utils: file_md5: only return hex
* utils: file_md5: don't use exists()
* checkout: don't call exists()
2021-02-06 16:13:58 +02:00
Saugat Pachhai
b8aa8ad951
pyupgrade: 3.6+ ( #3805 )
...
* pyupgrade: 3.6+
* tests: pyupgrade 3.6+
2020-05-15 16:48:02 +03:00
Aman Sharma
a79816920d
Move copyfile to fs.py
2020-01-09 04:57:53 +05:30
Aman Sharma
eca5d2dde4
Move makedirs to fs.py
2020-01-09 04:30:51 +05:30
Ruslan Kuprieiev
fe7fa1424b
tests: func: convert test_get.py test_utils.py to new fixtures
2019-12-30 09:38:48 +02:00
Ivan Shcheklein
1c752a9548
tests: makedirs permissions test simplify with tmpdir fixture
2019-11-19 00:32:09 -08:00
Ivan Shcheklein
303d52e4ac
tests: fix mkdirs permissions test to cleanup after failure
2019-11-14 14:32:52 -08:00
Ivan Shcheklein
eec7618f49
tests: makedirs permissions on intermediate dirs
2019-11-13 16:58:51 -08:00
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02:00
Ruslan Kuprieiev
6f11f1f51f
test: move func tests to tests/func
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-04-16 20:19:22 +03:00