System.Win32.HardLink

Win32-2.5.4.1: A binding to part of the Win32 library

Copyright | 2013 shelarcy
License | BSD-style
Maintainer | shelarcy@gmail.com
Stability | Provisional
Portability | Non-portable (Win32 API)
Safe Haskell | Safe
Language | Haskell98

System.Win32.HardLink (signature[?])

Description

Handling hard link using Win32 API. [NTFS only]

Note: You should worry about file system type when use this module's function in your application:

- NTFS only supprts this functionality.
- ReFS doesn't support hard link currently.

Synopsis

- createHardLink :: FilePath -> FilePath -> IO ()
- createHardLink' :: FilePath -> FilePath -> IO ()
- c_CreateHardLink :: LPCTSTR -> LPCTSTR -> LPSECURITY_ATTRIBUTES -> IO BOOL

# Documentation

createHardLink Source #

Arguments

:: FilePath | Target file path
-> FilePath | Hard link name
-> IO () |

NOTE: createHardLink is flipped arguments to provide compatiblity for Unix.

If you want to create hard link by Windows way, use `createHardLink'` instead.

createHardLink' Source #

Arguments

:: FilePath | Hard link name
-> FilePath | Target file path
-> IO () |

c_CreateHardLink Source #

Arguments

:: LPCTSTR | Hard link name
-> LPCTSTR | Target file path
-> LPSECURITY_ATTRIBUTES | This parameter is reserved. You should pass just nullPtr.
-> IO BOOL |