Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion dds_cli/file_handler_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, user_input, temporary_destination, project):
)

# Get absolute paths for all data
self.data_list = [pathlib.Path(path).resolve() for path in self.data_list]
self.data_list = [pathlib.Path(os.path.abspath(path)) for path in self.data_list]
Comment thread
i-oden marked this conversation as resolved.

# No data -- cannot proceed
if not self.data_list:
Expand Down Expand Up @@ -145,6 +145,15 @@ def __collect_file_info_local(self, all_paths, folder=pathlib.Path(""), task_nam
folder=folder / pathlib.Path(path.name),
)
file_info.update({**content_info})
else:
if path.is_symlink():
LOG.warning(
f"IGNORED: Link: {path} -> {path.resolve()} seems to be broken, will be ignored."
)
else:
LOG.warning(
f"IGNORED: Path of unsupported/unknown type: {path}, will be ignored."
)

return file_info, progress_tasks

Expand Down