Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 1eaface

Browse files
authored
Fix #235 - prevent going further up than root -win
1 parent a3db8fe commit 1eaface

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/filesystem.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class FilesystemDisplay {
109109

110110
i++;
111111
if (i === content.length) {
112-
if (tcwd !== "/") {
112+
if (tcwd !== "/" && tcwd !== "\") {
113113
this.cwd.push({
114114
name: "..",
115115
type: "up"

0 commit comments

Comments
 (0)