[bug #13728] superflous copying instead of moving
- From: Pavel Tsekov <savannah-bounces gnu org>
- To: Oswald Buddenhagen <ossi kde org>, Pavel Tsekov <ptsekov gmx net>, mc-devel gnome org
- Cc:
- Subject: [bug #13728] superflous copying instead of moving
- Date: Tue, 12 Jul 2005 11:53:47 +0000
Follow-up Comment #3, bug #13728 (project mc):
Does `bar/name/' contain any entries or is it empty ? I ask this question
because of the following paragraph in the description of rename() in SUSv3:
[...]
If the old argument points to the pathname of a directory, the new argument
shall not point to the pathname of a file that is not a directory. If the
directory named by the new argument exists, it shall be removed and old
renamed to new. In this case, a link named new shall exist throughout the
renaming operation and shall refer either to the directory referred to by new
or old before the operation began. If new names an existing directory, it
shall be required to be an empty directory.
[...]
So if we have an empty destination directory we could perform an efficient
move instead of copying . It is as simple as that.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13728>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]