Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Namespace files

Index

Functions

CanRead

  • CanRead(filePath: string): boolean
  • Tests whether the file can be opened for reading.

    priv

    none

    Parameters

    • filePath: string

      path to the file

    Returns boolean

    true if the file is readable; false otherwise

Extension

  • Extension(filepath: string): string
  • Returns the extension for a file.

    priv

    none

    Parameters

    • filepath: string

      path to the file

    Returns string

    File extension deduced from filepath; e.g. "foo/bar.txt" -> "txt"

FileName

  • FileName(filepath: string): string
  • Returns the file name

    priv

    none

    Parameters

    • filepath: string

    Returns string

    file name deduced from filepath. E.g. "foo/bar/baz.txt" -> "baz.txt"

ParentFolder

  • ParentFolder(filepath: string): string
  • Returns the parent folder of a file.

    priv

    none

    Parameters

    • filepath: string

    Returns string

    Parent folder deduced from filepath. E.g. "foo/bar/baz.txt" -> "foo/bar"

Generated using TypeDoc