Should item.type === "file" be changed to item.type === "directory"?
|
// Else, filter out the item pointing to the current directory (not needed) |
|
return nodes.filter( |
|
item => |
|
item.basename && |
|
(item.type === "file" || item.filename !== requestPath.replace(/\/$/, "")) |
|
); |
Should
item.type === "file"be changed toitem.type === "directory"?webdav-client/source/operations/directoryContents.ts
Lines 105 to 110 in 7c4e381