-
Since LongPathsEnabled only allows the total path length to exceed 260 characters, not each individual segment (in my case the "directories"), I would like to ask if these two workarounds to the problem are feasible and, if so, how. Directories structure:
Python script part for replace function: (I reduced the mention of the replacement list to a single point for a faster explanation)
Workaround n°1: Ignore "dst" value redundancy
The directory will be named: "HOLOLIVE\ HOLOLIVE - HOLOLIVE - HOLOLIVE - HOLOLIVE - HOLOLIVE" Workaround n°2: using directory option with conditionals In any case, Thanks in advance for any advice. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I apologize for the annoying situation but in the meantime I managed to solve only the second part of the post by myself. Hoping to not disturb you too much, I really need your help to solve this tedious situation. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I would suggest building all of a directory name in a specialized Python function, or at least assigning the entire directory name to a single metadata value, so that you can control its length. Either in Python or in a format string with To get rid of duplicate entries, convert the tag list to a dict after replacing its entries and before combining/using them. Maybe convert it back to a list to be able to access individual elements by index: tags = [
"hololive",
"hololive",
"hololive_english",
"mori_calliope_ch.",
"hololive",
"takanashi_kiara_ch.",
"hololive",
]
tags_dict = dict.fromkeys(tags)
tags_uniq = list(tags_dict)
for t in tags_uniq:
print(t) |
Beta Was this translation helpful? Give feedback.
You need to apply
repl
/REPLACEMENTS
to all relevant tags first and then do thedict.fromkeys
step.I've slightly modified the
transform
function from #7183 (comment) here to filter out duplicates: