def test_mkdir(clean, fs_kind, path): if skip_gcs[fs_kind]: print("skipped") return init(fs_kind) p = TransparentPath(path) p.mkdir() assert p.is_dir()
def test_isdir(clean, fs_kind, path1, path2, exists, expected): if skip_gcs[fs_kind]: print("skipped") return init(fs_kind) p1 = TransparentPath(path1) p1.touch() p2 = TransparentPath(path2) assert p2.is_dir(exist=exists) == expected