Skip to content

Commit ae848ed

Browse files
committed
Revert "Mark files with status 425."
This reverts commit 3f25406.
1 parent 93f9337 commit ae848ed

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

webdav/src/main/java/ch/cyberduck/core/dav/DAVListService.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,8 @@ public AttributedList<Path> list(final Path directory, final ListProgressListene
7777
throw new NotfoundException(directory.getAbsolute());
7878
}
7979
final PathAttributes attr = attributes.toAttributes(resource);
80-
final EnumSet<Path.Type> type = resource.isDirectory() ? EnumSet.of(Path.Type.directory) : EnumSet.of(Path.Type.file);
81-
switch(resource.getStatusCode()) {
82-
// 425 Too Early for partial tus uploads
83-
case 425:
84-
type.add(Path.Type.upload);
85-
}
86-
final Path file = new Path(directory, PathNormalizer.name(resource.getHref().getPath()), type, attr);
80+
final Path file = new Path(directory, PathNormalizer.name(resource.getHref().getPath()),
81+
resource.isDirectory() ? EnumSet.of(Path.Type.directory) : EnumSet.of(Path.Type.file), attr);
8782
children.add(file);
8883
}
8984
listener.chunk(directory, children);

0 commit comments

Comments
 (0)