filesystem_spec icon indicating copy to clipboard operation
filesystem_spec copied to clipboard

Path expansion is inconsistent in helper utilities

Open Skylion007 opened this issue 10 months ago • 1 comments

Path expansion is inconsistent when sequences are passed in to helper utilities such as fsspec.mv, fsspec.copy etc... fsspec.open_files() will call expand_if_needed depending on the args, but fsspec.mv and fsspec.copy will not. We should be consistently expanding file paths. Addditionally unit tests for fsspec.spec are lacking more broadly and this could lead to undefined behavior.

Skylion007 avatar Apr 17 '24 14:04 Skylion007

Sounds like more abstract tests are in order. I agree that consistency is good.

martindurant avatar Apr 18 '24 14:04 martindurant