[Bugs] Deleting files when "_files" folder exist

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

[Bugs] Deleting files when "_files" folder exist

Post by *fenix_productions »

Please follow these steps:
1. create directory "XYZ_files" (without quotes)
2. create file called "XYZ.htm"
3. delete file

Conclusions:
1. deleting file deletes directory too
2. deleting directory does not delete file
3. not all file extensions gives that kind of behaviour (e.g. for htm extension any string instead XYZ produce error)

[20:07]
I've found explanation on MSDN site.
I think that it still could be a bug because when I am using TC's methods for deleting files I don't want to expect explorer behaviour.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

Confirmed!

I know that explorer behaves like that since forever but I recall seing an option that disables such "feature" in the said explorer (which I can't find right now).
TC for Linux please!
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2roentgen
Just a *.reg file with content:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"NoFileFolderConnection"=dword:00000001
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
RID500
Member
Member
Posts: 194
Joined: 2006-11-20, 12:38 UTC

Post by *RID500 »

Here are two pictures about this MS "feature"
http://xona.com/2004/07/16.html

Here is an tip from http://www.jsifaq.com/SF/Tips/Tip.aspx?id=3841
NOTE: The Connected Files feature does NOT operate at a CMD prompt.


Here is an related question in the german forum
http://www.ghisler.ch/board/viewtopic.php?p=86748#86748
/join #TCMD Chat at irc.freenode.net - Today's newbies are tomorrow's experts.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

So there are three possible solutions for this:
1. disable globally,
2. enable (as exist for now),
3. enable with confirmation dialog (completely like explorer does).
We'll wait for Christian's response.

P.S. Try to read linked thread using babelfish translation. It makes a head-ache...
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
RID500
Member
Member
Posts: 194
Joined: 2006-11-20, 12:38 UTC

Post by *RID500 »

2fenix_productions
> P.S. Try to read linked thread

I guess you mean the german TC thread?
Are you interested on some parts translated?
/join #TCMD Chat at irc.freenode.net - Today's newbies are tomorrow's experts.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2RID500
I've used babelfish and understand it. But there is no Ghisler answer (or am I blind).
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2fenix_productions

I can only make TC behave the way you describe, if I have checked the option: "Configuration" -> "Copy/Delete" -> "General Copy+Delete options" -> "Use Explorer method (faster, cannot handle comments)"

So, it seems fair to me that if you request Explorer behaviour, then you must expect to get Explorer behaviour - also for features you don't like!

EDIT: I can actually also make it happen if I enable "F8/Del deletes to recycle bin" OR I use Shift+Del - Sorry that I didn't notice that at first - I have always disabled the use of recycle bin (both in TC and in Windows)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

So, it seems fair to me that if you request Explorer behaviour, then you must expect to get Explorer behaviour - also for features you don't like!
... wise spoken :) I fully agree !
#5767 Personal license
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2petermad
If I check deleting via Explorer in Options this is the behaviour I could expect. There is no info that selecting deletion to Recycle Bin will do this too. That is the strongest reason why I am surprised.

Btw. I am still expecting (my naive wish) to see "explorer view" mode in TC. With all pros and cons of it. Without need for special options for making TC to behave its own way.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

If you delete with Shift+Del and internal TC function, then only the file will be deleted. If you delete with F8/Del, then TC will use the SHFileOperation function to delete to Recycle Bin. Unfortunately this function uses the above registry value to decide whether to delete the associated directory or not.
Author of Total Commander
https://www.ghisler.com
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2ghisler(Author)
Please put this info into help file.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Unfortunately this function uses the above registry value to decide whether to delete the associated directory or not.
http://msdn2.microsoft.com/en-us/library/ms538322.aspx
FOF_NO_CONNECTED_ELEMENTS
Version 5.0. Do not move connected files as a group. Only move the specified files.
Icfu
This account is for sale
Post Reply