Skip to content

FileManager.removeDirectory

Kerri Shotts edited this page Oct 26, 2013 · 1 revision

(part of FileManager)

Parameters:

  • path - an absolute or relative path
  • recursive - boolean

Returns: Promise, resolving to the FileManager

ASYNCHRONOUS

Removes the specified directory. If the directory is not empty, and recursive is true, it is removed recursively. If it is not empty and recursive is false, then an error is returned.

Usage

aFileManager.removeDirectory ( "/path/to/dirA", true )
            .then ( ... )
            .catch ( function ( e ) { console.log ( e ); }
            .done ();
Clone this wiki locally