Disallow going above the initial directory
This commit is contained in:
parent
6695e6b07f
commit
0655290232
1 changed files with 0 additions and 3 deletions
|
@ -491,9 +491,6 @@ class MainWindow(Gtk.ApplicationWindow):
|
||||||
def _populate_file_list(self) -> None:
|
def _populate_file_list(self) -> None:
|
||||||
items: list[FileItem] = []
|
items: list[FileItem] = []
|
||||||
|
|
||||||
# Add parent directory
|
|
||||||
items.append(FileItem("..", FileType.DIRECTORY, Path("..").resolve()))
|
|
||||||
|
|
||||||
for entry in os.scandir():
|
for entry in os.scandir():
|
||||||
if entry.name.startswith("."):
|
if entry.name.startswith("."):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue