A GNU Arch Handbook

6.5 Renaming a File or Directory

(prev) (the end)

The procedure for renaming a file or directory varies depending on the id-tagging-method of the tree and the nature of the file.

All file and directory renames should usually be followed by a run of tree-lint to ensure that naming conventions and id tagging requirements have been properly followed.

Renaming a Directory

In all cases, a directory can be renamed simply by using mv.

Renaming a File or Symbolic Link

Begin by renaming the file or link in the ordinary way.

If the tree has an id-tagging-method which is not names, then it may be necessary to run the command:

% tla move-id OLDNAME NEWNAME

It is safe to run that command even when it is not necessary (although the command will exit with a non-0 status when invoked unecessarily).

Commands Discussed

    % tla move-id -H

  

(prev) (the end)

Copyright

Copyright (C) 2005 Tom Lord (lord@emf.net)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

(prev) (the end)