develop #1

Merged
itdominator merged 14 commits from develop into master 2022-01-30 00:22:36 +00:00
2 changed files with 10 additions and 4 deletions
Showing only changes of commit 2c258d470b - Show all commits

View File

@ -11,7 +11,10 @@ class Path:
return os.path.expanduser("~") + self.subpath
def get_path(self):
return "/" + "/".join(self.path)
if self.path:
return f"/{'/'.join(self.path)}"
else:
return f"/{''.join(self.path)}"
def get_path_list(self):
return self.path
@ -21,7 +24,7 @@ class Path:
self.load_directory()
def pop_from_path(self):
if len(self.path) > 1:
if self.path:
self.path.pop()
if not self.go_past_home:

View File

@ -232,6 +232,9 @@ class WidgetFileActionMixin:
target = f"{view.get_current_directory()}"
if file_name:
if len(target) == 1:
path = f"{target}{file_name}"
else:
path = f"{target}/{file_name}"
if type == True: # Create File