[bug #13728] superflous copying instead of moving

Oswald Buddenhagen savannah-bounces at gnu.org
Mon Jul 11 17:09:15 UTC 2005


Follow-up Comment #2, bug #13728 (project mc):

yes, indeed. i even started developing an algorithm to post here, but stopped
because the existance checks and file/dir discrimination started turning the
few lines into real work. :)=
anyway, the basic idea is: when a move fails, if the source is a file, move
via copy, otherwise create the target dir (if missing) and recursively call
the move function for all files in the source dir. or something like 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/




More information about the mc-devel mailing list