RichNioPath

sealed trait RichNioPath
class Any

Value members

Abstract methods

def asPath: Path

Concrete methods

def aclFileAttributeView: AclFileAttributeView
def addPermission(permission: PosixFilePermission): Unit

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

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

Value parameters:
permission

the permission to add

def attributes: BasicFileAttributes
def dosAttributes: DosFileAttributes
def group: GroupPrincipal

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

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

def groupName: String

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

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

def isGroupExecutable: Boolean

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

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

def isGroupReadable: Boolean

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

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

def isGroupWritable: Boolean

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

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

def isOthersExecutable: Boolean

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

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

def isOthersReadable: Boolean

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

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

def isOthersWritable: Boolean

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

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

def isOwnerExecutable: Boolean

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

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

def isOwnerReadable: Boolean

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

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

def isOwnerWritable: Boolean

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

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

def owner: UserPrincipal

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

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

def ownerName: String

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

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

def permissions: Set[PosixFilePermission]

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

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

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

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

def posixAttributes: PosixFileAttributes
def removePermission(permission: PosixFilePermission): Unit

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

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

Value parameters:
permission

the permission to remove

def setGroup(group: String): Unit

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

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

Value parameters:
group

the new group owner

def setOwner(owner: String): Unit

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

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

Value parameters:
owner

the new group owner

def setPermissions(permissions: Set[PosixFilePermission]): Unit

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

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

Value parameters:
permissions

the permissions to add

def testPermission(permission: PosixFilePermission): Boolean

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

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

Value parameters:
permission

the permission to remove