We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ceeb898 + a2a5bc0 commit 82f9610Copy full SHA for 82f9610
1 file changed
dandi/upload.py
@@ -4,7 +4,6 @@
4
from collections.abc import Iterator, Sequence
5
from contextlib import ExitStack
6
from enum import Enum
7
-from functools import reduce
8
import io
9
import os.path
10
from pathlib import Path
@@ -493,7 +492,7 @@ def upload_agg(*ignored: Any) -> str:
493
492
for p in paths:
494
rp = os.path.relpath(p, dandiset.path)
495
relpaths.append("" if rp == "." else rp)
496
- path_prefix = reduce(os.path.commonprefix, relpaths) # type: ignore[arg-type]
+ path_prefix = os.path.commonprefix(relpaths)
497
to_delete = []
498
for asset in remote_dandiset.get_assets_with_path_prefix(path_prefix):
499
if any(
0 commit comments