Skip to content

getDirectoryContents returns the input path itself in the result. #407

@oubenruing

Description

@oubenruing

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(/\/$/, ""))
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions