From 6b916d4e4b5004c4d8407fb0f23af94ec80d3b4b Mon Sep 17 00:00:00 2001 From: "jason.zhu" Date: Sat, 17 Jul 2021 23:50:30 +1000 Subject: [PATCH] minor fix --- symlink_to_hdlink.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/symlink_to_hdlink.py b/symlink_to_hdlink.py index 1c698e1..66ea50a 100644 --- a/symlink_to_hdlink.py +++ b/symlink_to_hdlink.py @@ -23,4 +23,6 @@ if __name__ == "__main__": paths = find_all_files(pathlib.Path(path_library)) for x in paths: - Media(x).convert_symlink_to_hdlink() \ No newline at end of file + tempx = Media(x) + if tempx.is_symlink: + tempx.convert_symlink_to_hdlink() \ No newline at end of file