Page 1 of 1
Update of dir after deleting files from ftp network location
Posted: 2024-06-25, 23:22 UTC
by petermad
2
ghisler(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?
Re: Update of dir after deleting files from ftp network location
Posted: 2024-06-30, 16:29 UTC
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?
Re: Update of dir after deleting files from ftp network location
Posted: 2024-07-01, 08:20 UTC
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.
Re: Update of dir after deleting files from ftp network location
Posted: 2024-07-08, 13:40 UTC
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.
Re: Update of dir after deleting files from ftp network location
Posted: 2024-07-08, 21:53 UTC
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?
Re: Update of dir after deleting files from ftp network location
Posted: 2024-07-09, 00:14 UTC
by petermad
2
hi5
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