[Bug?] Synchronize directories ignores exclusion filter
Moderators: Hacker, petermad, Stefan2, white
[Bug?] Synchronize directories ignores exclusion filter
I was synchronizing directories between a directory tree on disk and another one within a zip file (C:\work\ and c:\aa.zip\)
I set an exclusion filter ("|*.class"), however the synchronize view still shows the *.class files.
This happens only if one side is a zip archive, not if both sides are directory trees within the file system
I set an exclusion filter ("|*.class"), however the synchronize view still shows the *.class files.
This happens only if one side is a zip archive, not if both sides are directory trees within the file system
2tomy
I've tried it. In the left panel I had a .zip file, in the right one - a true folder. It showed me some differences. When I put a filter: "*.*|*.html" - it showed again the differences but it ignored (as it should) the .html files which were in the .zip file. So it worked corrrectly in my case.
I've tried it. In the left panel I had a .zip file, in the right one - a true folder. It showed me some differences. When I put a filter: "*.*|*.html" - it showed again the differences but it ignored (as it should) the .html files which were in the .zip file. So it worked corrrectly in my case.
Checked with 6.51:
index.htm and default.htm within the directory and the zip, index.htm changed within the directory.
- "|*.htm" works, all htm files excluded
- "|i*" excludes index.htm from the directory listing but not from the zip listing, so index.htm is marked to be copied from the zip!
This worked with 6.03a
index.htm and default.htm within the directory and the zip, index.htm changed within the directory.
- "|*.htm" works, all htm files excluded
- "|i*" excludes index.htm from the directory listing but not from the zip listing, so index.htm is marked to be copied from the zip!
This worked with 6.03a
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I cannot confirm this error. Is there anything special about the archive, e.g. are the files in subdirs or so?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I did some additional research.
It seems that the file exclusion filter works for regular files (from the filesystem) at any hierarchical level and for files from zip-archives only at the current level. It does not work for files in subdirs of the current level.
I.e. if I'm looking at test.zip\dir1 with a filter of "|i*" then the file "test.zip\dir1\index.htm" is excluded, but not the file "test.zip\dir1\dir2\index.htm".
I could confirm this behaviour back to version 5.51 (the oldest version I have)
It seems that the file exclusion filter works for regular files (from the filesystem) at any hierarchical level and for files from zip-archives only at the current level. It does not work for files in subdirs of the current level.
I.e. if I'm looking at test.zip\dir1 with a filter of "|i*" then the file "test.zip\dir1\index.htm" is excluded, but not the file "test.zip\dir1\dir2\index.htm".
I could confirm this behaviour back to version 5.51 (the oldest version I have)
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks for your investiagtions. It seems that TC is matching at least partially with the relative path name - which has no influence when looking for the extension, but does when looking for the file name. I will try to find a workaround.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com