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. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def /(component: String): File
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  5. def absolutePath: String
  6. def aclFileAttributeView: AclFileAttributeView
    Definition Classes
    RichNioPath
  7. def addPermission(permission: PosixFilePermission): Unit

    Adds permission to this file.

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

    permission

    the permission to add

    Definition Classes
    RichNioPath
  8. val asFile: File
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def asPath: java.nio.file.Path
    Definition Classes
    RichFileRichNioPath
  11. def asURL: URL

    The wrapped file converted to a URL.

  12. def attributes: BasicFileAttributes
    Definition Classes
    RichNioPath
  13. 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.

  14. def baseAndExt: (String, String)
  15. def dosAttributes: DosFileAttributes
    Definition Classes
    RichNioPath
  16. def exists: Boolean

    True if and only if the wrapped file exists.

  17. 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.

  18. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  19. 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
  20. 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
  21. def hash: Array[Byte]
  22. def hashString: String
  23. def hashStringHalf: String
  24. def isDirectory: Boolean

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

  25. 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
  26. 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
  27. 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
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. def lastModified: Long

    The last modified time of the wrapped file.

  36. def name: String

    The last component of this path.

  37. 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.

  38. 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.

  39. 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
  40. 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
  41. 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
  42. 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
  43. def posixAttributes: PosixFileAttributes
    Definition Classes
    RichNioPath
  44. def relativeTo(base: File): Option[File]
  45. def relativize(sub: File): Option[File]
  46. def removePermission(permission: PosixFilePermission): Unit

    Removes permission from this file.

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

    permission

    the permission to remove

    Definition Classes
    RichNioPath
  47. 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.

    group

    the new group owner

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

    Updates the file owner.

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

    owner

    the new group owner

    Definition Classes
    RichNioPath
  49. 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.

    permissions

    the permissions to add

    Definition Classes
    RichNioPath
  50. 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.

    permission

    the permission to remove

    Definition Classes
    RichNioPath
  51. def toString(): String
    Definition Classes
    Any
  52. def withLinkOptions(linkOption: LinkOption*): LinkOptionPath

Inherited from RichNioPath

Inherited from AnyVal

Inherited from Any

Ungrouped