Page 1 of 2

[Tc11] [added,fixed] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-08, 09:24 UTC
by JOUBE
[Tc11] There are very good and usefull extended features within the ignorelist:

history.txt:

Code: Select all

03.05.23 Release Total Commander 11.00 beta 1
[...]
07.04.23 Added: Ignore list now supports entries for FTP connections: FTP:filter for all FTP connections, or FTP:servername:filter or FTP:>connectionname:filter for a specific server name or connection (32/64)
[...]
Tc11 F1 Help:

Code: Select all

[...]
<Listbox> List files and folders which you want to ignore. The following entry types are supported:
[...]
4. Files in all file system plugins. Use *: as prefix. Example: *:filename
5. Files in one file system plugin. Use pluginname: as prefix. Example: pluginname:filename
6. Files on all FTP servers. Use FTP: as prefix (uppercase). Example: FTP:filename
7. Files on specific FTP servers. Use FTP:servername: as prefix. Examples: FTP:server:filename
8. Files for specific FTP connections. Use FTP:>connection: as prefix, e.g. FTP:>my connection:filename
[...]
Thanks for that.

But:
Please add the additional feature "'servername:' as prefix" not only to the internal FTP but also to the other file system plugins. Because ftp/ftps becomes more and more obsolete and is substituted by others, specialy sftp/scp (and others like webdav, cloud access, ...). So the very goot new feature "'servername:' as prefix" should be also available for all file system plugins.

JOUBE

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-08, 15:22 UTC
by ghisler(Author)
You cannot use the server name because TC doesn't "know" it, only the plugins themselves know it. However, you can use the connection name (the name under which you saved the connection). Example:
SFTP:\connection name\*\*.bak
Note the \*\ which tells TC to apply the filter (here: *.bak) in all subfolders of that plugin.

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 01:11 UTC
by JOUBE
ghisler(Author) wrote: 2023-05-08, 15:22 UTCconnection name
[...]
\*\
- 'connection name' was clear and I tested it with that.
- '\*\' I do not try that, but it works.

But there are some - let me say - issues that prevented me from testing it successfully:

- I used folder names to ignore for testing purposes and get the folder names from the TC command line by ctrl+enter, just mouse click to select, then copy it with ctrl+c and paste it to the Ignorelist with ctrl+v. And the problem of this handling is the trailing space char that TC (with good reason! (do not change it!)) adds to the command line when Ctrl+Enter is pressed. And this space char is now copied to the Ignorelist line. I add a \ at the end of the folder name (and the 'hidden' space char remains behind!). This trailing space char prevented the line from working (here in the Ignorelist you can do something...). That's one of two reasons for me to stop testing (It simply doesn't work...). *) The other is, that I thought, it doesn't work because of space chars inside my connection names. But - as I now know - this is not the case, the reason is the missing: ''\*\' )

- The second thing is: It doesn't work every time. Often (when the connection is started) it does not work. If you leave the respective folder and go back, it works. It seems a bit buggy.

JOUBE

*) Same big problem is the "Ctrl+Enter and copy it from the TC-command line" into rules within the 'Task Scheduler module of Windows. Very problematic to find these 'Trailing Space Char Errors' on 'Folder Names'" in it... (It simply doesn't work...)

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 02:05 UTC
by petermad
Often (when the connection is started) it does not work. If you leave the respective folder and go back, it works. It seems a bit buggy.
Don't forget that if you go directly to an ignored folder, TC will not stop you from doing that. The Ignore list only prevents from navigating to a folder, by hiding the folder name in the file panel. For example if you ignore c:\windows then c:\windows is hidden in the file list and from searching, but you can still go to the folder using CD c:\windows - Could it be the same you are experiencing , if your connection starts in the ignored folder?

Also, to add those File system names or FTP names it is much easier to mark the folders/files in TC's file panel, then open TC's Ignore list configuration dialog and press the button "Add selected names with full path" - then TC automatically uses the correct syntax.

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 07:32 UTC
by JOUBE
petermad wrote: 2023-05-09, 02:05 UTC Don't forget that if you go directly to an ignored folder, TC will not stop you from doing that [...]

easier to mark the folders/files in TC's file panel [...]
Do you really think, I do not know both completely and exactly?

- Please try it out (Do not start the connection in the ignored folder, but in the parent folder for example): Sometimes the 'ignored folder' is visible. In that case the 'ignored folder' will not be ignored until you switch out of the parent directory and back in... How is it in your case?

- To say it much more clear: It is a problem (in my opinion a bug) to don't cut off a trailing space char after a \ (which means 'folder') in the ingnorelist. Especially if the end of the line is not made visible (like in ignorelist or the same in Windows Task Scheduler) *). The filename ' ' (one space char) or a filename with a trailing space char (after the expression (*.exp' ')): is it possible under Windows/Linux?). What do you think about it? Please try it out.

JOUBE

*) until you open the ignorelist (or the exported xml of Windows Task Scheduler) with you standard editor

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 11:47 UTC
by petermad
Do you really think, I do not know both completely and exactly?
Sorry, no offence.

- Please try it out
I tried it, with the SFTP plugin, and of course it does not work with a space followed by a \ after the path name, it doesn't do that on local hard disk either.

If I use the GUI option "Add selected names with full path" TC does not add a \ after folder names, not on Local hard disk, Network shares, FTP connections or File system plugins.

If I add a space after the path (no \) then it does not work on Local hard disk and Network shares, but it works on FTP connections and File system plugins.

So just don't add a trailing \ to folder names - TC does not require it anyway.

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 13:25 UTC
by JOUBE
petermad wrote: 2023-05-09, 11:47 UTC
- Please try it out
I tried it, with the SFTP plugin, and of course it does not work with a space followed by a \ after the path name, it doesn't do that on local hard disk either.
Maybe christian ghisler(author) is willing to change this. But this is not soooo important.
petermad wrote: 2023-05-09, 11:47 UTCSo just don't add a trailing \ to folder names - TC does not require it anyway.
For me it is a must to have this option on, because for easy copying file via copy / cp -p on Windows / Linux (within the SFTP plugin (! perfect and respect for that to ghisler(author))) systems via TCs command line. So I can live with this little problem within the ignorelist.

Please can you test the main thing (the bug). Sometimes 'ingore' works and sometime 'ignore' does not work? I do not understand the reason (from what it dependes and what are the conditions).

JOUBE

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 13:46 UTC
by petermad
Please can you test the main thing (the bug). Sometimes 'ingore' works and sometime 'ignore' does not work? I do not understand the reason (from what it dependes and what are the conditions).
Sure - is it with the SFTP plugin or others? Is it for a folder that is in the directory that opens when you connect or is it with a parent dir that is deeper down in the tree?

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 14:02 UTC
by JOUBE
petermad wrote: 2023-05-09, 13:46 UTC
Please can you test the main thing (the bug). Sometimes 'ingore' works and sometime 'ignore' does not work? I do not understand the reason (from what it dependes and what are the conditions).
Sure - is it with the SFTP plugin or others? Is it for a folder that is in the directory that opens when you connect or is it with a parent dir that is deeper down in the tree?
Thanks.

It is in the directory that opens when I connect ( /home/user/ ). The folder to be ignored: /home/user/01__xx/
Connection name in SFTP: '1 a b {c}' (yes: with space chars and { and } in it):
Line in the ignorelist:Secure FTP:\1 a b {c}\*\01__xx\
(No trailing space char ;-) )

Example connect with server 1 a b {c}: 01__xx/ is visible (but it should be unvisible). In Tc I go back to /home/ by pressing Enter and go forward again to /home/user/ by pressing Enter. Result: 01__xx/ is now not visible (as it should)

Depends the bug from the slashes, from the spaces or from what? I don't know... I have tested the spaces in connection name: connection names without spaces and without [ and } does not work. It is the same.

JOUBE

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 18:06 UTC
by petermad
I made a connection with the name: '1 a b {c}'
I don't have a "user" directory in my "home" directory so I used the existing directory with my username (but maybe that is what you meant with "user")
In my username directory I made the folder 01__xx
I put Secure FTP:\1 a b {c}\*\01__xx\ in the ignore list

I logged in several times to '1 a b {c}' (/home/username/) and restarted TC several times and logged in again, and every time the 01__xx\ folder is hidden as it should be.

Going back to home\ and into username\ again still hides the 01__xx\ folder

Screnshot with Ignorelist off: https://tcmd.madsenworld.dk/ignorelistoff.png
Screnshot with Ignorelist on: https://tcmd.madsenworld.dk/ignoreliston.png

(I have masked the username in the screenshots)

My Web hosting is on a is a ProFTPD Server. I am using Secure ftp plugin version 3.05

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 19:32 UTC
by JOUBE
petermad wrote: 2023-05-09, 18:06 UTCI made a connection with the name: '1 a b {c}'
Thanks for testing.

I also do some additional tests. In my case it is not Webhosting, but standard Openssh implementations (SSH-2.0-...) on different Linux (mainly Debian and Red Hat, ...) and Windows (10/11) systems (no wsl, standard OpenSSH for Windows). On all Systems it is the same. If you connect (for example to: 10.0.0.2:22/home/user/) to a folder with folders, which have to be ignored: At this first 'landing' the "ignorage" does not work. After the first folder change everything is okay.

It's just such an initialization of "ignorage" that's missing after connecting and before reading the file list. That's all.

JOUBE

Edit: differend -> different

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 19:48 UTC
by ghisler(Author)
Can you give me more details where the ignore list doesn't work, please:
1. How does the entry in the ignore list look like which doesn't work?
2. What path name is shown above the file list where the ignore list doesn't work?
3. What file name isn't ignored?

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-09, 19:52 UTC
by JOUBE
ghisler(Author) wrote: 2023-05-09, 19:48 UTC Can you give me more details where the ignore list doesn't work, please:
1. How does the entry in the ignore list look like which doesn't work?
2. What path name is shown above the file list where the ignore list doesn't work?
3. What file name isn't ignored?
My testing results are: everything works well, except of this (see my posting directly above yours):
It's just such an initialization of "ignorage" that's missing after connecting and before reading the file list. That's all.
JOUBE

... If your are kind, then also deal with the mentioned problem of the trailing space char (... and also allow inline comments with # in the ignorelist).

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-10, 11:01 UTC
by JOUBE
Another bug in ingnorelist handling:

Code: Select all

Secure FTP:\1 a b {c}\*\01__xx\   folder is ingnored. this is okay.
#Secure FTP:\1 a b {c}\*\01__xx\  folder is ingnored. this is not okay. Why?
#Xecure XTP:\1 a b {c}\*\01__xx\  folder is ingnored. this is not okay. Why?

Secure FTP:\x1 a b {c}\*\01__xx\  folder is not ingnored. this is okay. (because of connection 'x...' does no exist)
Please react in ingorage only of the correct file system plugin names!

JOUBE

Re: [Tc11] Ignorelist: Suggestion to the new extended Features

Posted: 2023-05-10, 14:10 UTC
by ghisler(Author)
see my posting directly above yours
I asked because I did not understand what's wrong in the posting above my last. Please reply to my questions 1-3.
#Secure FTP:\1 a b {c}\*\01__xx\ folder is ignored. this is not okay. Why?
I cannot reproduce that, the name has to match exactly.