Object

firrtl

FileUtils

Related Doc: package firrtl

Permalink

object FileUtils

Source
FileUtils.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. def deleteDirectoryHierarchy(file: File, atTop: Boolean = true): Boolean

    Permalink

    recursively delete all directories in a relative path DO NOT DELETE absolute paths

  7. def deleteDirectoryHierarchy(directoryPathName: String): Boolean

    Permalink

    recursively delete all directories in a relative path DO NOT DELETE absolute paths

    recursively delete all directories in a relative path DO NOT DELETE absolute paths

    directoryPathName

    a directory hierarchy to delete

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. def getLines(file: File): Seq[String]

    Permalink

    Read a text file and return it as a Seq of strings Closes the file after read to avoid dangling file handles

    Read a text file and return it as a Seq of strings Closes the file after read to avoid dangling file handles

    file

    a java File to be read

  12. def getLines(fileName: String): Seq[String]

    Permalink

    Read a text file and return it as a Seq of strings Closes the file after read to avoid dangling file handles

    Read a text file and return it as a Seq of strings Closes the file after read to avoid dangling file handles

    fileName

    The file to read

  13. def getLinesResource(resourceName: String): Seq[String]

    Permalink

    Read text file and return it as a Seq of strings Closes the file after read to avoid dangling file handles

    Read text file and return it as a Seq of strings Closes the file after read to avoid dangling file handles

    resourceName

    a java File to be read

    Note

    resourceName typically begins with a slash.

  14. def getText(file: File): String

    Permalink

    Read a text file and return it as a single string Closes the file after read to avoid dangling file handles

    Read a text file and return it as a single string Closes the file after read to avoid dangling file handles

    file

    a java File to be read

  15. def getText(fileName: String): String

    Permalink

    Read a text file and return it as a single string Closes the file after read to avoid dangling file handles

    Read a text file and return it as a single string Closes the file after read to avoid dangling file handles

    fileName

    The file to read

  16. def getTextResource(resourceName: String): String

    Permalink

    Read text file and return it as a single string Closes the file after read to avoid dangling file handles

    Read text file and return it as a single string Closes the file after read to avoid dangling file handles

    resourceName

    a java File to be read

    Note

    resourceName typically begins with a slash.

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. def isCommandAvailable(cmd: String): Boolean

    Permalink

    Indicate if an external command (executable) is available (from the current PATH).

    Indicate if an external command (executable) is available (from the current PATH).

    cmd

    the command/executable (without any arguments).

    returns

    true if cmd returns a 0 exit status.

  19. def isCommandAvailable(cmd: Seq[String]): Boolean

    Permalink

    Indicate if an external command (executable) is available (from the current PATH).

    Indicate if an external command (executable) is available (from the current PATH).

    cmd

    the command/executable plus any arguments to the command as a Seq().

    returns

    true if cmd <args> returns a 0 exit status.

  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. lazy val isVCSAvailable: Boolean

    Permalink

    Flag indicating if vcs is available (for Verilog compilation and testing).

    Flag indicating if vcs is available (for Verilog compilation and testing). We used to use a bash command (which ...) to determine this, but this is problematic on Windows (issue #807). Instead we try to run the executable itself (with innocuous arguments) and interpret any errors/exceptions as an indication that the executable is unavailable.

  22. def makeDirectory(directoryName: String): Boolean

    Permalink

    Create a directory if it doesn't exist

    Create a directory if it doesn't exist

    directoryName

    a directory string with one or more levels

    returns

    true if the directory exists or if it was successfully created

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped