Last updated on 
                
                    Apr 27, 2021
                
            
            
                 | 
                
                    Also applies to ColdFusion
                
            
        
        
            
        
    
Moving a directory
You can move a directory by using the moveDirectory function as shown in the following example:
<cfset dirobj = cfclient.file.moveDirectory(source,destination)>  | 
   
Method summary
moveDirectory(source, destination) - move a directory from source to destination
- returns - DirectoryEntry object
 - params   
- source – Source directory name (absolute or relative path)
 - destination – Absolute or relative path of the destination location (excluding the directory name)
 
 
For instance,
<cfset cfclient.file.moveDirectory('dir2','dir1')>  |