Method to determine whether given folder path is local (vs networked)?

3 views (last 30 days)
Programatically given a string. This includes URL or Windows file or folder path strings.
Something like isfolder but islocalfolder or isnetworkedfolder

Accepted Answer

Walter Roberson
Walter Roberson on 8 Aug 2021
You might possibly be able to use a .NET System.IO.DriveInfo
Although that is talking about C#, System.* is at least partially available in MATLAB, such as System.Diagnostics.Process
Walter Roberson
Walter Roberson on 8 Aug 2021
There is the additional possibility that the computer name somehow resolves to the current computer. localhost or or an ip address that is one of the local host ip addresses. Also watch out for \\?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!