Junctions are contextually similar to symlinks on Windows.
I propose adding a mechanism to both pathlib.Path and os.path to check if a
given path is a junction or not. Currently is_symlink/islink return False for
junctions.
Maybe isjunction in os.path and is_junction in pathlib.Path?
Part of m
On 11/7/22, Charles Machalow wrote:
>
> Junctions are contextually similar to symlinks on Windows.
Junctions (i.e. IO_REPARSE_TAG_MOUNT_POINT) are implemented to behave
as mount points for local volumes, so there are a couple of important
differences.
In a remote path, a junction gets resolved o
So would you be for specific methods to check if a given path is a junction?
On Mon, Nov 7, 2022, 4:49 PM Eryk Sun wrote:
> On 11/7/22, Charles Machalow wrote:
> >
> > Junctions are contextually similar to symlinks on Windows.
>
> Junctions (i.e. IO_REPARSE_TAG_MOUNT_POINT) are implemented to b
On 11/7/22, Charles Machalow wrote:
> So would you be for specific methods to check if a given path is a
> junction?
I'd prefer for ismount() to be modified to always return true for a
junction. This would be a significant rewrite of the current
implementation, which is only true for a junction t
I tend to prefer adding isjunction instead of changing ismount since I tend
to not think about junctions as being mounts (but closer to symlinks).. but
I guess either way the closeness of the concepts is a different story than
the specific ask here. In other words: for clarity, adding a specific
me
On 11/8/22, Charles Machalow wrote:
> I tend to prefer adding isjunction instead of changing ismount since I tend
> to not think about junctions as being mounts (but closer to symlinks)..
Junctions are mount points that are similar to Unix bind mounts where
it counts -- in the behavior that's imp
I'm not technical enough here to try to argue which it is closer to. We can
say it's like so and so in implementation, but I just liken it a certain
way.
I think for regular users it makes most sense to just have a specific
function rather than expecting folks to know concept similarities... a
sim
+1 on adding Path.is_junction() that returns False on non-Windows systems.
(I'm a Windows user and I use junctions as well.)
On Tue, Nov 8, 2022 at 9:24 AM Charles Machalow wrote:
> I'm not technical enough here to try to argue which it is closer to. We
> can say it's like so and so in implement