# class FileUtils


File utilities class for use in JavaScript


# FUNCTIONS

# function tempPath()

Description:

Return:

(String) -

# function tempFile()

Description:

Return:

(String) -

# function filename(path)

Description:

Parameters:

  • path: (String) -

Return:

(String) -

# function basename(path)

Description:

Parameters:

  • path: (String) -

Return:

(String) -

# function directory(path)

Description:

Parameters:

  • path: (String) -

Return:

(String) -

# function isDirectory(path)

Description:

Parameters:

  • path: (String) -

Return:

(Boolean) -

# function isFile(path)

Description:

Parameters:

  • path: (String) -

Return:

(Boolean) -

# function copyFile(source, dest)

Description:

Parameters:

  • source: (String) -
  • dest: (String) -

Return:

(Boolean) -

# function moveFile(source, dest)

Description:

Parameters:

  • source: (String) -
  • dest: (String) -

Return:

(Boolean) -

# function concat(basePath, filename)

Description:

Parameters:

  • basePath: (String) -
  • filename: (String) -

Return:

(String) -

# function text(path)

Description:

Parameters:

  • path: (String) -

Return:

(String) -

# function text(path, encoding)

Description:

Parameters:

  • path: (String) -
  • encoding: (String) -

Return:

(String) -

# function lines(path)

Description:

Parameters:

  • path: (String) -

Return:

(String) -

# function lines(path, encoding)

Description:

Parameters:

  • path: (String) -
  • encoding: (String) -

Return:

(String) -

# function writeFile(path, encoding, lines)

Description:

Parameters:

  • path: (String) -
  • encoding: (String) -
  • lines: (String) -

Return:

(Boolean) -

# function files(directory)

Description:

Parameters:

  • directory: (String) -

Return:

(String) -

# function files(directory, extensions, recurse)

Description:

Parameters:

  • directory: (String) -
  • extensions: (String) -
  • recurse: (Boolean) -

Return:

(String) -

# function csv(path)

Description:

Parameters:

  • path: (String) -

Return:

(List) -

# function xml(path)

Description:

Parameters:

  • path: (String) -

Return:

(Document) -

# function find(dir, fileName)

Description:

Parameters:

  • dir: (String) -
  • fileName: (String) -

Return:

(String) -

# function delete(path)

Description:

Parameters:

  • path: (String) -

Return:

(Boolean) -

# function mkDir(path)

Description:

Parameters:

  • path: (String) -

Return:

(Boolean) -

# STATIC FUNCTIONS

# static function append(path, text)

Description:

Parameters:

  • path: (String) -
  • text: (String) -

# static function append(path, text, separator)

Description:

Parameters:

  • path: (String) -
  • text: (String) -
  • separator: (String) -
Last Updated: 12/20/2022, 8:12:45 AM