Class

sbt.io

RichFile

Related Doc: package io

Permalink

final class RichFile extends AnyVal with RichNioPath

Linear Supertypes
RichNioPath, AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichFile
  2. RichNioPath
  3. AnyVal
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichFile(asFile: File)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    Any
  3. def /(component: String): File

    Permalink
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  5. def absolutePath: String

    Permalink
  6. def aclFileAttributeView: AclFileAttributeView

    Permalink
    Definition Classes
    RichNioPath
  7. def addPermission(permission: PosixFilePermission): Unit

    Permalink

    Adds permission to this file.

    Adds permission to this file. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  8. val asFile: File

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def asPath: Path

    Permalink
    Definition Classes
    RichFileRichNioPath
  11. def asURL: URL

    Permalink

    The wrapped file converted to a URL.

    The wrapped file converted to a URL.

  12. def attributes: BasicFileAttributes

    Permalink
    Definition Classes
    RichNioPath
  13. def base: String

    Permalink

    The base of the name of this path.

    The base of the name of this path. This is the part of the name before the last period, or the full name if there is no period.

  14. def baseAndExt: (String, String)

    Permalink
  15. def dosAttributes: DosFileAttributes

    Permalink
    Definition Classes
    RichNioPath
  16. def exists: Boolean

    Permalink

    True if and only if the wrapped file exists.

  17. def ext: String

    Permalink

    The extension part of the name of this path.

    The extension part of the name of this path. This is the part of the name after the last period, or the empty string if there is no period.

  18. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  19. def group: GroupPrincipal

    Permalink

    Returns the group owner of a file.

    Returns the group owner of a file. This operation requires underlying filesystem to support IO.hasFileOwnerAttributeView.

    Definition Classes
    RichNioPath
  20. def groupName: String

    Permalink

    Returns the group owner of a file.

    Returns the group owner of a file. This operation requires underlying filesystem to support IO.hasFileOwnerAttributeView.

    Definition Classes
    RichNioPath
  21. def hash: Array[Byte]

    Permalink
  22. def hashString: String

    Permalink
  23. def hashStringHalf: String

    Permalink
  24. def isDirectory: Boolean

    Permalink

    True if and only if the wrapped file is a directory.

  25. def isGroupExecutable: Boolean

    Permalink

    Tests if this file has the group+execute permission.

    Tests if this file has the group+execute permission. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  26. def isGroupReadable: Boolean

    Permalink

    Tests if this file has the group+read permission.

    Tests if this file has the group+read permission. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  27. def isGroupWritable: Boolean

    Permalink

    Tests if this file has the group+write permission.

    Tests if this file has the group+write permission. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def isOthersExecutable: Boolean

    Permalink

    Tests if this file has the others+execute permission.

    Tests if this file has the others+execute permission. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  30. def isOthersReadable: Boolean

    Permalink

    Tests if this file has the others+read permission.

    Tests if this file has the others+read permission. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  31. def isOthersWritable: Boolean

    Permalink

    Tests if this file has the others+write permission.

    Tests if this file has the others+write permission. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  32. def isOwnerExecutable: Boolean

    Permalink

    Tests if this file has the owner+execute permission.

    Tests if this file has the owner+execute permission. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  33. def isOwnerReadable: Boolean

    Permalink

    Tests if this file has the owner+read permission.

    Tests if this file has the owner+read permission. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  34. def isOwnerWritable: Boolean

    Permalink

    Tests if this file has the owner+write permission.

    Tests if this file has the owner+write permission. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  35. def lastModified: Long

    Permalink

    The last modified time of the wrapped file.

  36. def name: String

    Permalink

    The last component of this path.

  37. def newerThan(other: File): Boolean

    Permalink

    True if and only if the wrapped file asFile exists and the file 'other' does not exist or was modified before the asFile.

  38. def olderThan(other: File): Boolean

    Permalink

    True if and only if the wrapped file asFile does not exist or the file other exists and was modified after asFile.

  39. def owner: UserPrincipal

    Permalink

    Returns the owner of a file.

    Returns the owner of a file. This operation requires underlying filesystem to support IO.hasFileOwnerAttributeView.

    Definition Classes
    RichNioPath
  40. def ownerName: String

    Permalink

    Returns the owner of a file.

    Returns the owner of a file. This operation requires underlying filesystem to support IO.hasFileOwnerAttributeView.

    Definition Classes
    RichNioPath
  41. def permissions: Set[PosixFilePermission]

    Permalink

    Returns this file's POSIX permissions.

    Returns this file's POSIX permissions. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  42. def permissionsAsString: String

    Permalink

    Returns this file's POSIX permissions.

    Returns this file's POSIX permissions. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  43. def posixAttributes: PosixFileAttributes

    Permalink
    Definition Classes
    RichNioPath
  44. def relativeTo(base: File): Option[File]

    Permalink
  45. def relativize(sub: File): Option[File]

    Permalink
  46. def removePermission(permission: PosixFilePermission): Unit

    Permalink

    Removes permission from this file.

    Removes permission from this file. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  47. def setGroup(group: String): Unit

    Permalink

    Updates the group owner of the file.

    Updates the group owner of the file. This operation requires underlying filesystem to support IO.hasFileOwnerAttributeView.

    Definition Classes
    RichNioPath
  48. def setOwner(owner: String): Unit

    Permalink

    Updates the file owner.

    Updates the file owner. This operation requires underlying filesystem to support IO.hasFileOwnerAttributeView.

    Definition Classes
    RichNioPath
  49. def setPermissions(permissions: Set[PosixFilePermission]): Unit

    Permalink

    Updates permission of this file.

    Updates permission of this file. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  50. def testPermission(permission: PosixFilePermission): Boolean

    Permalink

    Tests if this file has the given permission.

    Tests if this file has the given permission. This operation requires underlying filesystem to support IO.isPosix.

    Definition Classes
    RichNioPath
  51. def toString(): String

    Permalink
    Definition Classes
    Any
  52. def withLinkOptions(linkOption: LinkOption*): LinkOptionPath

    Permalink

Inherited from RichNioPath

Inherited from AnyVal

Inherited from Any

Ungrouped