Jun-07-2018, 03:19 AM
when a .relative_to() method is invoked for a Path() of a symlink, it follows the symlink and works on the object that symlink points to. but i want to detect if the symlink itself is relative to the object passed in the arg. my use case: a script (named "junk") to junk [verb] files being invoked by another script in which it might pass objects that are (already) in the "~/junk" directory. in the case of a symlink already there, it fails to detect that because that symlink points to somewhere outside the "~/junk" directory. how can i detect this based on where the symlink is?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.