Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FileSystemService

FileSystemService provides helper utilities to read and crawl the local filesystem

Hierarchy

  • FileSystemService

Index

Constructors

constructor

Properties

Private messageService

messageService: NotificationService

Methods

isDirectory

  • isDirectory(localPath: string): boolean
  • Tests if a local file path is a directory or not

    Parameters

    • localPath: string

      local file or directory path

    Returns boolean

Private logFileReadingError

  • logFileReadingError(err: any): void

recurseDirectory

  • recurseDirectory(directory: string, files: String[]): String[]
  • Utility method to help crawl a local directoy returning all folders and files underneath it

    Parameters

    • directory: string

      Local Filesystem Directory to crawl

    • files: String[]

      Can be NULL. Is a list of Strings to local File paths that will be returned.

    Returns String[]

    List of File and Folder Paths under the passed in path added to the passed in files[]

Generated using TypeDoc