?Don't delete files in path that have environment vars
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 9
- Joined: 2013-04-25, 14:42 UTC
?Don't delete files in path that have environment vars
Hello!
I synchronize directories and found that the files are not deleted in folder:
"D:\Soft\Utils\_Portable\VMware ThinApp\Captures\.NET Framework 3.5 SP1\%SystemRoot%\assembly\NativeImages_v2.0.50727_32\UIAutomationProvider\##Attributes.ini"
Folder "assembly" in this path have hidden attributes.
Image: s1.ipicture.ru/uploads/20140525/C1zB3HBy.png
Video screen: youtu.be/zEb7EcVpfjw
TC 8.51a x86, TC 8.51a x64 - similarly. Synchronize - BAD.
In TC 8.01 x86 - similarly. Synchronize - BAD.
In TC 6.54a - all right. All folders are deleted. Synchronize - OK.
PS: OS Win7 SP1 x64
I synchronize directories and found that the files are not deleted in folder:
"D:\Soft\Utils\_Portable\VMware ThinApp\Captures\.NET Framework 3.5 SP1\%SystemRoot%\assembly\NativeImages_v2.0.50727_32\UIAutomationProvider\##Attributes.ini"
Folder "assembly" in this path have hidden attributes.
Image: s1.ipicture.ru/uploads/20140525/C1zB3HBy.png
Video screen: youtu.be/zEb7EcVpfjw
TC 8.51a x86, TC 8.51a x64 - similarly. Synchronize - BAD.
In TC 8.01 x86 - similarly. Synchronize - BAD.
In TC 6.54a - all right. All folders are deleted. Synchronize - OK.
PS: OS Win7 SP1 x64
- ghisler(Author)
- Site Admin
- Posts: 50549
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC supports env vars in the sync tool on purpose. You need to start the sync above such a directory if you want to sync it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 9
- Joined: 2013-04-25, 14:42 UTC
- ghisler(Author)
- Site Admin
- Posts: 50549
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Yes, that's what I wrote. Sorry, there is no solution, TC cannot offer support for env vars and then ignore them here...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 9
- Joined: 2013-04-25, 14:42 UTC
MVV
Может вы объясните ему о баге. Я с инглишем с переводчиком.
Баг на лицо. Сделал видео-репорт (ссылка в первом посте) на ютубе.
Выложил архив на ргхост во втором посте. В архиве папка с атрибутом "системный" с некоторыми файлами. Если распаковать этот архив и с любой папки сделать ассиметричную синхронизацию с распакованным, то ничего не удалится из распакованного. Как я понял, из-за атрибута "системный" и именно этих файлов, которые там в папке.
Может вы объясните ему о баге. Я с инглишем с переводчиком.
Баг на лицо. Сделал видео-репорт (ссылка в первом посте) на ютубе.
Выложил архив на ргхост во втором посте. В архиве папка с атрибутом "системный" с некоторыми файлами. Если распаковать этот архив и с любой папки сделать ассиметричную синхронизацию с распакованным, то ничего не удалится из распакованного. Как я понял, из-за атрибута "системный" и именно этих файлов, которые там в папке.
- ghisler(Author)
- Site Admin
- Posts: 50549
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Does it work when you start the synchronization above the problematic folder, e.g. here:
D:\Soft\Utils\_Portable\VMware ThinApp\Captures\.NET Framework 3.5 SP1
Then no env vars will appear in the left/right path fields of the sync tool, so there should be no problem.
D:\Soft\Utils\_Portable\VMware ThinApp\Captures\.NET Framework 3.5 SP1
Then no env vars will appear in the left/right path fields of the sync tool, so there should be no problem.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I can't reproduce mentioned behaviour. Archive is already deleted, and when I try to create such folder tree with mentioned file, TC deletes it always. I tried different drives, hidden and non-hidden assembly dir, disabling empty dirs deletion etc.
However I found following: it I enter %SystemRoot% on any side dir and then start sync, TC reports that directory doesn't exist. Here TC really expands envvars making path invalid.
However I found following: it I enter %SystemRoot% on any side dir and then start sync, TC reports that directory doesn't exist. Here TC really expands envvars making path invalid.
- ghisler(Author)
- Site Admin
- Posts: 50549
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Yes, that's what I meant - TC does expand env vars in the left/right path edit boxes, but not when a subdir below the start location contains env vars.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com