Update of dir after deleting files from ftp network location

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Update of dir after deleting files from ftp network location

Post by *petermad »

2ghisler(Author)

If I in File Explorer right-click on "This PC", there is an option to "Add a network location". Here I can add an FTP location (ftp: //username@domainname).

This FTP location will be shown also in TC under This PC - see: https://tcmd.madsenworld.dk/ftpsite.png

In TC this kind of location seems to be treated like a virtual folder (hence lightblue on the screenshot).

I can copy files to and from a local folder to the FTP folders, and if I copy a file to the FTP folder, the content of the panel is updated.

But if I delete a file (or overwrite it), the FTP folder panel is not updated, so there is no way, but restarting TC to see that the file was really deleted/changed. Going in and out of the folder does not cause it to update, neither does cm_RereadSource 3.

Is it possible to make TC update this kind of folder after deleting/overwriting files?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Update of dir after deleting files from ftp network location

Post by *ghisler(Author) »

No, TC reloads the folder from Windows each time you go out of it or press Ctrl+R. It sounds like Windows is incorrectly keeping the folder cached. Does the folder refresh when you create a new subfolder, or rename a file? Maybe this makes deleted files disappear too?
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Update of dir after deleting files from ftp network location

Post by *petermad »

Does the folder refresh when you create a new subfolder
No.

or rename a file?
Yes

It sounds like Windows is incorrectly keeping the folder cached
How can it be then, that restarting TC removes the deleted files/folders from TC's directory listing?

It also happens if I move a file out of the network location, then it is still shown in the file panel..

If I have tried to delete a file, and then copy a file with the same name (also case-wise) to the folder, then TC shows the same file twice: https://tcmd.madsenworld.dk/ftpsite2.png

If I have tried to delete a file, and I try again, I get a Windows' error box saying that the file cannot be deleted: https://tcmd.madsenworld.dk/ftpsite3.png because it does not exist

Tested under Windows 7 and 10.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Update of dir after deleting files from ftp network location

Post by *ghisler(Author) »

How can it be then, that restarting TC removes the deleted files/folders from TC's directory listing?
Sorry, no idea, there is very little documentation of that feature. Maybe Windows drops the connection when all apps accessing it are closed.
Author of Total Commander
https://www.ghisler.com
hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Update of dir after deleting files from ftp network location

Post by *hi5 »

@petermad I see you have "å" in the path (and spaces) does that make any difference?
Windows can be funny with such things, so if you have "\testfolderwithoutspacesoranynonazcharactersinit\" does it work better in such a case?
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Update of dir after deleting files from ftp network location

Post by *petermad »

2hi5

It is not really in the path - "på" is danish for "on" - so the Current directory bar says:
\\:madsenworld.dk\public_html on madsenworld.dk\test on madsenworld.dk\

So the word "på" and the spaces are put there by Windows. Here is how it looks if I run Windows with an account with English locale: https://tcmd.madsenworld.dk/ftpsiteeng.png or with separate tree: https://tcmd.madsenworld.dk/ftpsiteseperatetree.png

For some reason Windows adds " on madsenworld.dk" to every directory in the path.

The path with FTP is: /domains/madsenworld.dk/public_html/test/ - so no spaces from my side

Here is how it looks in Explorer: https://tcmd.madsenworld.dk/ftpsiteexplorer.png

Also timestamps and case of folders are different from the normal FTP-view: https://tcmd.madsenworld.dk/ftpsiteftp.png
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply