[Bug?] Synchronize directories ignores exclusion filter

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tomy
Junior Member
Junior Member
Posts: 7
Joined: 2003-10-30, 07:12 UTC

[Bug?] Synchronize directories ignores exclusion filter

Post by *tomy »

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
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

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.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
tomy
Junior Member
Junior Member
Posts: 7
Joined: 2003-10-30, 07:12 UTC

Post by *tomy »

2djk
I've rechecked: Filtering by extension (ie "*.*|*.html" or "|*.class") works as expected.
However I want to exclude files by name (ie "*.*|E*", exclude all files whose names start with E)
Sorry for the inexact problem description :oops:
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Have you tried
*.* | E*.*
?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

I've tried something like this *.*|D*.* at my computer. I wanted to exclude all files which names start with "D" and it did it correctly but unfortunately it excluded also other all files from directories started with "D" :-( So it was not what I really wanted.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
tomy
Junior Member
Junior Member
Posts: 7
Joined: 2003-10-30, 07:12 UTC

Post by *tomy »

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
tomy
Junior Member
Junior Member
Posts: 7
Joined: 2003-10-30, 07:12 UTC

Post by *tomy »

Yep - the files have to be in sub directories for this bug to show up - if they are in the currently displayed directory everything works fine.
tomy
Junior Member
Junior Member
Posts: 7
Joined: 2003-10-30, 07:12 UTC

Post by *tomy »

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)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
Post Reply