Browse Source

Minor comment updates

pull/9/head
Ryan Reed 1 year ago
parent
commit
89b7ad3625
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/transpose/transpose.py

+ 3
- 3
src/transpose/transpose.py View File

@ -146,7 +146,7 @@ class Transpose:
if entry_path.exists(): if entry_path.exists():
if entry_path.is_symlink(): if entry_path.is_symlink():
remove(entry_path) remove(entry_path)
elif force: # Backup the existing path, just in case
elif force: # Backup the existing path
move(entry_path, entry_path.with_suffix(".backup")) move(entry_path, entry_path.with_suffix(".backup"))
else: else:
raise TransposeError( raise TransposeError(
@ -176,7 +176,7 @@ class Transpose:
if entry_path.exists(): if entry_path.exists():
if entry_path.is_symlink(): if entry_path.is_symlink():
remove(entry_path) remove(entry_path)
elif force: # Backup the existing path, just in case
elif force: # Backup the existing path
move(entry_path, entry_path.with_suffix(".backup")) move(entry_path, entry_path.with_suffix(".backup"))
else: else:
raise TransposeError( raise TransposeError(
@ -193,7 +193,7 @@ class Transpose:
Move the source path to the store path, create a symlink, and update the config Move the source path to the store path, create a symlink, and update the config
Args: Args:
name: The name of the entry (must exist)
name: The name of the entry
source_path: The directory or file to be stored source_path: The directory or file to be stored
Returns: Returns:


Loading…
Cancel
Save