Skip to content

Commit fe30d44

Browse files
Merge pull request #143 from dirkpetersen/fix-path-when-using-double-quotes
Fix path when using double quotes
2 parents 35a2c5d + 7ebe546 commit fe30d44

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

Diff for: froster/froster.py

+4-16
Original file line numberDiff line numberDiff line change
@@ -3788,9 +3788,6 @@ def _slurm_cmd(self, folders, cmd_type, scheduled=None):
37883788
def index(self, folders):
37893789
'''Index the given folders for archiving'''
37903790
try:
3791-
# Clean the provided paths
3792-
folders = clean_path_list(folders)
3793-
37943791
if self._is_recursive_collision(folders):
37953792
log(
37963793
f'\nError: You cannot index folders if there is a dependency between them. Specify only the parent folder.\n')
@@ -4090,9 +4087,6 @@ def _archive_locally(self, folder_to_archive, is_recursive, is_subfolder, is_tar
40904087
def archive(self, folders):
40914088
'''Archive the given folders'''
40924089
try:
4093-
# Clean the provided paths
4094-
folders = clean_path_list(folders)
4095-
40964090
# Set flags
40974091
is_recursive = self.args.recursive
40984092

@@ -4251,7 +4245,6 @@ def mount(self, folders, mountpoint):
42514245
'''Mount the given folder'''
42524246

42534247
# Clean the provided paths
4254-
folders = clean_path_list(folders)
42554248
mountpoint = clean_path(mountpoint)
42564249

42574250
self._mount_locally(folders, mountpoint)
@@ -4278,9 +4271,6 @@ def _unmount_locally(self, folders):
42784271
def unmount(self, folders):
42794272

42804273
try:
4281-
# Clean the provided paths
4282-
folders = clean_path_list(folders)
4283-
42844274
self._unmount_locally(folders)
42854275

42864276
return True
@@ -4833,9 +4823,6 @@ def delete(self, folders):
48334823
'''Delete the given folders'''
48344824

48354825
try:
4836-
# Clean the provided paths
4837-
folders = clean_path_list(folders)
4838-
48394826
# Set flags
48404827
is_recursive = self.args.recursive
48414828

@@ -4953,9 +4940,6 @@ def restore(self, folders, aws: AWSBoto):
49534940
'''Restore the given folder'''
49544941

49554942
try:
4956-
# Clean the provided paths
4957-
folders = clean_path_list(folders)
4958-
49594943
# Set flags
49604944
is_recursive = self.args.recursive
49614945

@@ -7637,6 +7621,10 @@ def main():
76377621
if cfg.is_shared and cfg.shared_dir:
76387622
cfg.assure_permissions_and_group(cfg.shared_dir)
76397623

7624+
# Clean the provided paths (if any)
7625+
if hasattr(cmd.args, "folders"):
7626+
cmd.args.folders = clean_path_list(cmd.args.folders)
7627+
76407628
# CLI commands that do NOT need credentials or configuration
76417629
if args.subcmd in ['config', 'cnf']:
76427630
res = cmd.subcmd_config(cfg, aws)

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "froster"
7-
version = "0.18.0"
7+
version = "0.18.1"
88
description = "Froster is a tool for easy data transfer between local file systems and AWS S3 storage."
99
authors = ["Victor Machado <[email protected]>"]
1010
readme = "README.md"

0 commit comments

Comments
 (0)