Browse Source

Removing unnecessary comments

pull/2/head
Ryan Reed 2 years ago
parent
commit
e78333e7db
1 changed files with 0 additions and 15 deletions
  1. +0
    -15
      transpose/transpose.py

+ 0
- 15
transpose/transpose.py View File

@ -19,14 +19,6 @@ class Transpose:
def restore(self) -> None: def restore(self) -> None:
""" """
Restores a previously Transpose managed directory to it's previous location. Restores a previously Transpose managed directory to it's previous location.
Performs:
1. Verify `cache_file` exists
2. Verify `target_path` exists
3. Verify if `original_path` in cache is a symlink
a. Remove if true
4. Verify `original_path` doesn't exist
5. Move `target_path` to `original_path` based on cache file settings
""" """
if not self.cache_path.exists(): if not self.cache_path.exists():
raise TransposeError( raise TransposeError(
@ -53,13 +45,6 @@ class Transpose:
def store(self, name: str) -> None: def store(self, name: str) -> None:
""" """
Moves a directory to a central location and creates a symlink to the old path. Moves a directory to a central location and creates a symlink to the old path.
Performs:
1. Verify `target_path` exists
2. Verify `store_path` exists
3. Create the cache file
4. Move the `target_path` to `store_path/name`
5. Create symlink `target_path` -> `store_path/name`
""" """
new_location = Path(self.store_path).joinpath(name) new_location = Path(self.store_path).joinpath(name)


Loading…
Cancel
Save