Safe Haskell | None |
---|---|
Language | Haskell2010 |
- createJunctionPoint :: Text -> Text -> IO ()
- deleteJunctionPoint :: Text -> IO ()
- getJunctionPointInfo :: Text -> IO Text
Documentation
Create a junction point between two folders on the same filesystem.
mountDir
should be the full file path to an empty folder. This
folder should be on a local filesystem.
destDir
should be the full file path to the junction point's target. The
target must be a folder on the same filesystem as its source. The path
should also be preceeded by "\??\". This indicates to Windows not to try
validating the path before using it.
>>>
createJunctionPoint "c:\\Windows\\System32" "\\??\\c:\\System32"
deleteJunctionPoint :: Text -> IO () Source
This Deletes the junction point at the supplied path. An
empty folder will be left in its place on success. A Win32Exception
exception will be thrown in the event of an error condition.
getJunctionPointInfo :: Text -> IO Text Source
Discover the target of a junction point at the supplied path. A
Win32Exception
exception will be thrown if the target is either invalid
or not a junction point. The returned path will be prefixed by "\??\".