Copy a folder programmatically without resolving hardlinks in Windows (Win32 API)

StackOverflow https://stackoverflow.com/questions/7420168

  •  30-10-2019
  •  | 
  •  

Pergunta

I want to copy an entire folder without resolving the hardlinks

example:

Folder1
  |
  +---File1
      File2
      HardLink3 -> File3

(HardLink3 created using fsutil hardlink create or mklink)

I want to copy this folder to

Folder2
  |
  +---File1
      File2
      HardLink3 -> File3

keeping Folder2\HardLink3 as a hardlink pointing to File3

Is there an Win32 API call to copy a entire folder with this semantic, or, if I need to do CopyFile / CreateHardLink file by file, what's the API call to check if a given file is a hardlink or not?

Nenhuma solução correta

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top