W3cubDocs

/Haskell 9

System.Win32.WindowsString.HardLink

Copyright 2013 shelarcy
License BSD-style
Maintainer [email protected]
Stability Provisional
Portability Non-portable (Win32 API)
Safe Haskell None
Language Haskell2010

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.

createHardLink Source

Arguments

:: WindowsPath

Target file path

-> WindowsPath

Hard link name

-> IO ()

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

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

createHardLink' Source

Arguments

:: WindowsPath

Hard link name

-> WindowsPath

Target file path

-> IO ()

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/Win32-2.14.1.0-d391/System-Win32-WindowsString-HardLink.html