FileAttributes

sbt.nio.file.FileAttributes
See theFileAttributes companion object
sealed trait FileAttributes

Represents a minimal set of attributes a file. In contrast to java.nio.file.attribute.BasicFileAttributes, it is possible to compute the values provided by this trait without stating the file. If all of the methods return false, the user may infer that the file to which these attributes corresponds does not exist. An instance of this class may not represent that current state of the file if the underlying file has been modified since the instance was first created.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NonExistent.type

Members list

Value members

Abstract methods

def isDirectory: Boolean

Returns true if the underlying file is a directory.

Returns true if the underlying file is a directory.

Attributes

Returns

true if the underlying file is a directory.

def isOther: Boolean

Returns true if the underlying file is not a regular file, directory or symbolic link. The type of this file is thus platform dependent. For example, on linux, it could be a named pipe.

Returns true if the underlying file is not a regular file, directory or symbolic link. The type of this file is thus platform dependent. For example, on linux, it could be a named pipe.

Attributes

Returns

true if the underlying file is not a regular file, directory or symbolic link.

def isRegularFile: Boolean

Returns true if the underlying file is a regular file.

Returns true if the underlying file is a regular file.

Attributes

Returns

true if the underlying file is a regular file.