NTFS links getting destroyed on save (solved)

NTFS links getting destroyed on save (solved)

413
Basic UserBasic User
413

    Jul 07, 2010#1

    Hello.

    If a file is a NTFS Link/SymbolicLink (or has a NTFS Link/SymbolicLink) then on save UES creates a new file with the same name and in a process destroys any NTFS links that associated with that file.

    I'm using Link Shell Extension on Windows XP 32bit and Windows 7 64bit.
    To reproduce the situation do the following (assuming the above shell extension already installed. Please note, the above software is only a GUI, the NTFS links is a feature of the NTFS filesystem and can be created via command prompt without any 3nd party software):

    1) create a file: C:\folder1\example.txt
    2) create a NTFS Link (Hardlink/SymbolicLink) of that file and save it as: C:\folder2\example.txt
    3) Edit file C:\folder1\example.txt in notepad/wordpad, save it.
    4) Open C:\folder2\example.txt in UES, you should see the text that you added in C:\folder1\example.txt
    5) Open C:\folder1\example.txt in UES and change the text, save it.
    6) Open C:\folder2\example.txt in UES again - no last changes were added into that file, NTFS link is broken, now system has 2 independent, unlinked files


    You can see it on video:

    6,681583
    Grand MasterGrand Master
    6,681583

      Jul 07, 2010#2

      I'm not using NTFS links, but I think the reason for this behavior is how backup files are created by UES/UE. By default UES/UE creates the backup file by renaming the original file and then saving the modified file with the original name. This backup strategy is fast, but works only for backup files created in the same directory as the original file. In UltraEdit I have disabled the backup feature and in UEStudio I have specified a separate backup directory for the backups of the files and therefore I think I would not have this problem even when using NTFS links because no backup file to create respectively original file must be copied to the backup directory and can't be just renamed.

      However, by enabling configuration setting Copy file instead of using rename when creating backup file at Advanced - Configuration - File Handling - Advanced should result in not destroying the NTFS links.
      Best regards from an UC/UE/UES for Windows user from Austria

      413
      Basic UserBasic User
      413

        Jul 07, 2010#3

        Mofi wrote:However, by enabling configuration setting Copy file instead of using rename when creating backup file at Advanced - Configuration - File Handling - Advanced should result in not destroying the NTFS links.
        Bulls eye!
        Enable that option seems to cured the problem.

        Thank you very much!