c

sbt.io

RichFile

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)

Value Members

  1. def /(component: String): File
  2. def absolutePath: String
  3. def aclFileAttributeView: AclFileAttributeView
    Definition Classes
    RichNioPath
  4. def addPermission(permission: PosixFilePermission): Unit

    Adds permission to this file.

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

    Definition Classes
    RichNioPath
  5. val asFile: File
  6. def asPath: java.nio.file.Path
    Definition Classes
    RichFileRichNioPath
  7. def asURL: URL

    The wrapped file converted to a URL.

  8. def attributes: BasicFileAttributes
    Definition Classes
    RichNioPath
  9. def base: String

    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.

  10. def baseAndExt: (String, String)
  11. def dosAttributes: DosFileAttributes
    Definition Classes
    RichNioPath
  12. def exists: Boolean

    True if and only if the wrapped file exists.

  13. def ext: String

    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.

  14. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  15. def group: GroupPrincipal

    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
  16. def groupName: String

    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
  17. def hash: Array[Byte]
  18. def hashString: String
  19. def hashStringHalf: String
  20. def isDirectory: Boolean

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

  21. def isGroupExecutable: Boolean

    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
  22. def isGroupReadable: Boolean

    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
  23. def isGroupWritable: Boolean

    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
  24. def isOthersExecutable: Boolean

    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
  25. def isOthersReadable: Boolean

    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
  26. def isOthersWritable: Boolean

    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
  27. def isOwnerExecutable: Boolean

    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
  28. def isOwnerReadable: Boolean

    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
  29. def isOwnerWritable: Boolean

    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
  30. def lastModified: Long

    The last modified time of the wrapped file.

  31. def name: String

    The last component of this path.

  32. def newerThan(other: File): Boolean

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

  33. def olderThan(other: File): Boolean

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

  34. def owner: UserPrincipal

    Returns the owner of a file.

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

    Definition Classes
    RichNioPath
  35. def ownerName: String

    Returns the owner of a file.

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

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

    Returns this file's POSIX permissions.

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

    Definition Classes
    RichNioPath
  37. def permissionsAsString: String

    Returns this file's POSIX permissions.

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

    Definition Classes
    RichNioPath
  38. def posixAttributes: PosixFileAttributes
    Definition Classes
    RichNioPath
  39. def relativeTo(base: File): Option[File]
  40. def relativize(sub: File): Option[File]
  41. def removePermission(permission: PosixFilePermission): Unit

    Removes permission from this file.

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

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

    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
  43. def setOwner(owner: String): Unit

    Updates the file owner.

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

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

    Updates permission of this file.

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

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

    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
  46. def withLinkOptions(linkOption: LinkOption*): LinkOptionPath