Browse Source

Reduce duplication (#960).

Dan Helfman 5 months ago
parent
commit
d6c3ec05aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      borgmatic/actions/create.py

+ 1 - 1
borgmatic/actions/create.py

@@ -25,7 +25,7 @@ def expand_directory(directory, working_directory):
 
 
     # This would be a lot easier to do with glob(..., root_dir=working_directory), but root_dir is
     # This would be a lot easier to do with glob(..., root_dir=working_directory), but root_dir is
     # only available in Python 3.10+.
     # only available in Python 3.10+.
-    glob_paths = glob.glob(os.path.join(working_directory or '', os.path.expanduser(directory)))
+    glob_paths = glob.glob(os.path.join(working_directory or '', expanded_directory))
 
 
     if not glob_paths:
     if not glob_paths:
         return [expanded_directory]
         return [expanded_directory]