Opened 12 years ago

Last modified 3 years ago

#2885 assigned bug

"replace other file": can't replace directory with file

Reported by: Adek336 Owned by: nobody
Priority: normal Milestone: R1
Component: Applications/Tracker Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All


When I have file "a" and directory "b" and I try to rename "a" to "b" I get told that a file of name "b" already exists and two buttons, "Cancel" and "Replace other file".

"Replace other file" doesn't do anything; just like when I try to rename "b" to "a".

However I can replace a folder with another folder and a file with another file.

Expected behaviour: do the replace; however, replacing a folder with a file can be harmful: losing all the files in a folder. So perhaps the dialog box should contain a warning if I'm trying to replace a non-empty directory (regardless whether with a file or directory).

Change History (6)

comment:1 by Adek336, 12 years ago

Also note #1420.

comment:2 by aldeck, 12 years ago

Component: User InterfaceApplications/Tracker
Owner: changed from stippi to axeld

comment:3 by aldeck, 12 years ago

Oops, didn't want to change the owner. Will probably reassign to me in the future anyway :)

comment:4 by scottmc, 9 years ago

Can you recheck this on a recent Haiku build? This may or may not have been addressed in the last 3 years.

comment:5 by diver, 9 years ago

Still here in hrev42188.

comment:6 by axeld, 3 years ago

Owner: changed from axeld to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.