tag:blogger.com,1999:blog-6628985022531866193.post8068596120473021150..comments2024-02-12T17:37:05.629+00:00Comments on The OldWood Thing: Join-Path Fails When Local Drive Letter Doesn’t ExistChris Oldwoodhttp://www.blogger.com/profile/18183909440298909448noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6628985022531866193.post-84789865060639486082014-09-16T19:09:35.042+01:002014-09-16T19:09:35.042+01:00@PhilNash Sorry, but what are the two types of val...@PhilNash Sorry, but what are the two types of validation to which you are referring? When I create a path either I wanted it (all) validated or not. If I want bits of it validated surely I should use Split-Path and Test-Path and do it manually?<br /><br />In other words, why is an invalid UNC share name tolerated but not a local drive mapping when they are both absolute path roots?Chris Oldwoodhttps://www.blogger.com/profile/18183909440298909448noreply@blogger.comtag:blogger.com,1999:blog-6628985022531866193.post-81213115217175457392014-09-16T17:41:00.748+01:002014-09-16T17:41:00.748+01:00I don't think it's as inconsistent as it m...I don't think it's as inconsistent as it might first appear.<br />It's quite a normal thing to do to construct paths that do not yet exist *in order to create them*.<br />Referring to a drive letter that does not exist will almost always be an error if used, though.<br />Obviously there are exceptions to that, as you've found - and I agree that the validation should be opt-in (or at least opt-out!) - but I think the two types of validation are different things,Phil Nashhttps://www.blogger.com/profile/07697983218189410572noreply@blogger.com