English support forum
Moderators: Hacker , petermad , Stefan2 , white
Hacker
Moderator
Posts: 13144 Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia
Post
by *Hacker » 2020-01-25, 17:45 UTC
bogordo ,
Try moving the .txt definition lower. Or change the .txt definition to exclude folders.
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.
petermad
Power Member
Posts: 16118 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2020-01-28, 00:18 UTC
Yoiu have to maka a search that explicitly finds folders only:
Code: Select all
[Searches]
Folders_SearchFor=
Folders_SearchIn=
Folders_SearchText=
Folders_SearchFlags=0|000002000020||||||||22221|0000|
An then assign the colorfilter to >Folders - like this:
Code: Select all
[Colors]
ColorFilter1=>Folders
ColorFilter1Color=40704
ColorFilter1ColorDark=45056,40704
See also:
viewtopic.php?f=14&t=52472
bogordo
Member
Posts: 174 Joined: 2019-12-06, 09:07 UTC
Post
by *bogordo » 2020-01-28, 08:28 UTC
Hi Peter,
I already have folder only search with this, not know the difference with your code:
Code: Select all
Folder_SearchFlags=0|002002000020||||||||22221|0000|||
TC license #346559
bogordo
Member
Posts: 174 Joined: 2019-12-06, 09:07 UTC
Post
by *bogordo » 2020-01-28, 15:13 UTC
Thank you Peter,
The problem comes with another Search/color definition for .TXT files, that is priorized over the Folder one, do you have one for .TXT?
Moving down the .TXT filter works, but i thonk this is not the correct solution, since really the folder is a folder, even ending wth .txt...
Image:
https://i.ibb.co/R38XCLF/CAPT-0005.png
TC license #346559
petermad
Power Member
Posts: 16118 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2020-01-29, 22:04 UTC
If you don't want to move the >Folder item above the *.txt *.log then you can redefine so that it explicity rule out folders:
https://madsenworld.dk/tcmd/txtnotfolder.png
Code: Select all
[Searches]
*.txt *.log_SearchFor=*.txt *.log
*.txt *.log_SearchIn=
*.txt *.log_SearchText=
*.txt *.log_SearchFlags=0|002002000020||||||||22220|0000|||
Code: Select all
[Colors]
ColorFilter3=>*.txt *.log
ColorFilter3Color=16711935
ColorFilter4=>Folder
ColorFilter4Color=33023
It works:
https://madsenworld.dk/tcmd/txtnotfolder2.png - but is more cumbersom to maintain.
It is really much easier to move the >Folder item up in the list.
bogordo
Member
Posts: 174 Joined: 2019-12-06, 09:07 UTC
Post
by *bogordo » 2020-01-30, 18:05 UTC
Thank you Peter, yes, it's better to move up the folder definition.
It really wasn't a real problem, it was more like reporting the weird (isn't it?) behavior of taking a File definition being a Folder
Best regards,
TC license #346559
Hacker
Moderator
Posts: 13144 Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia
Post
by *Hacker » 2020-01-30, 21:05 UTC
bogordo ,
Well, a folder is a file that contains names of other files.
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.
petermad
Power Member
Posts: 16118 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2020-01-31, 07:17 UTC
2
bogordo
From Wikipedia:
Files (or links to files) can be located in directories. However, more generally, a directory can contain either a list of files or a list of links to files. Within this definition, it is of paramount importance that the term "file" includes directories .
https://en.wikipedia.org/wiki/Computer_file
bogordo
Member
Posts: 174 Joined: 2019-12-06, 09:07 UTC
Post
by *bogordo » 2020-01-31, 07:55 UTC
Ok thank you both for clarifying, i thought "the nature" was different
TC license #346559