Command: MoveDirectory

NEST HelpDesk Command Index NEST Quick Reference

Name:
 MoveDirectory - Rename a directory
Synopsis:
 string1 string2 MoveDirectory -> boolean
Description:
 MoveDirectory unlinks old directory name and links to
      the new name. This is only possible if this directory is empty.
Parameters:
 string1 : Name of old directory
             string2 : Name of new directory
             boolean : A flag if operation succeded.
Examples:
 (NewSubDir) (Other) MoveDirectory -> True, and ./NewSubDir
            is now called ./Other, provided it exists and is empty.
Bugs:
 -
Author:
 Hehl
FirstVersion:
 Oct 12th 1999
Remarks:
 This operator in fact only sequentially calls
          RemoveDirectory, MoveDirectory
          POSIX statet this would be the same operator like renaming
          a file, but that did not work.
SeeAlso:FileNames MoveDirectory RemoveDirectory MoveFile
Source:
 /home/abuild/rpmbuild/BUILD/nest-2.4.1/lib/sli/filesystem.sli

NEST HelpDesk Command Index NEST Quick Reference

© 2000-2010 The NEST Initiative