title: How to test if a given path is a mount point (Windows)
body: <p>I'm looking for python code to test if given path is not on local drive (i.e. it's mounted) on Windows 10. If path is <code>K:\dir1\file2.txt</code> I want to know if it's local file or it's on network.
  I checked internet and I found a solution for Posix only like <code>os.path.ismount(path)</code> but it doesn't work on Win10. It works only for <code>\\server\path</code></p>
  
  <p>I played w/ ctypes.windll.kernel32.GetFileAttributesA() (inspired here: <a href="https://docs.microsoft.com/en-us/windows/desktop/fileio/determining-whether-a-directory-is-a-volume-mount-point" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/windows/desktop/fileio/determining-whether-a-directory-is-a-volume-mount-point</a>) but w/o good result. </p>
  
  <p>Please help </p>