FileSystem.Directory object

New in package 167

Syntax

var dir = FileSystem.directory( path );

Description

Represents a file system directory.

Properties

Property Type Description
[files] Entries Collection of files within the directory.
[directories] Entries Collection of directories within the directory.
[entries] Entries Collection of files and directories within the directory.

See FileSystem.Entry object properties.

Methods

Method Returns Description
file( name [, options ] ) File Creates a File object representing the named file.
directory( name [, options ] ) Directory Creates a Directory object representing the named directory.
copyTo( location [, options ] ) Directory Copies the directory and its contents into the specified destination.
[moveTo]( location [, options ] ) Directory Moves the directory and its contents into the specified destination.
[rename]( newName [, options ] ) Directory Renames the directory.
[delete]( [ options ] )   Deletes the directory.
[create]()   Creates the directory if it does not exist.

See also [Error Handling] methods.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.