Opened 10 years ago

Last modified 2 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:
Has a Patch: no Platform: All

Description

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 Changed 10 years ago by Adek336

Also note #1420.

comment:2 Changed 10 years ago by aldeck

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

comment:3 Changed 10 years ago by aldeck

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

comment:4 Changed 8 years ago by scottmc

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

comment:5 Changed 8 years ago by diver

Still here in hrev42188.

comment:6 Changed 2 years ago by axeld

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