PhpEd is unlinking HardLinks after FileSave |
|
If i open hardlinked file and save it in IDE - hardlink will lost.
|
||||||||||||
|
|
Symbolic link to a folder is not need me in my task. I need use same file with different names on server and localhost. HardLink solve this problem.
|
||||||||||||
|
Guru master
|
A problem with hardlinks and text editors is that many editors will save as a new temporary file, delete the original file then rename the temporary file to the original file name.
This is a safe way of saving because if the save of the new temporary file fails, you still have the original file. Some text editors will also rename the original file to something like name.bak as a backup. This renaming and deletion process means you will lose the hardlink. The method of saving that would work is for a text editor to truncate the original file then append write to it. Many Windows editors will not do that, but I just checked UltraEdit (www.idmcomp.com) and that does support saving files directly back with creating a backup or using a temporary file. It also supports PHP syntax, but you will miss out on the PhpED stuff. |
||||||||||||
|
|
phped changed something with build 5989. i have almost the same problem, my php files are on a remote samba share and have special file permissions set on them. with build 5988 i can open/edit/save a file without loosing the permissions. with build 5989 it will create a new file and loose the permissions.
i logged a tickted for it and they came back with the same explanation as above.
mabye they can change it back or change it like this: - create a copy of the current file with exstension .bak or .org - truncate the current file - fill the file with the new data - and if all is successfull delete the .bak file |
||||||||||||||
|
|
Should be fixed in build 5990.
Please check. |
||||||||||||
|
|
ver. 5990 save SymLinks, thx.
|
||||||||||||
|
PhpEd is unlinking HardLinks after FileSave |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by