fs2.io.file

package fs2.io.file

Members list

Concise view

Type members

Classlikes

Attributes

Companion:
object
Source:
FileSystemException.scala
Graph
Supertypes
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
FileSystemException.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait BasicFileAttributes

Attributes of a file that are provided by most operating systems and file systems.

Attributes of a file that are provided by most operating systems and file systems.

To get an instance of BasicFileAttributes, use Files[F].getBasicFileAttributes(path).

The fileKey operation returns a unique identifier for the file, if the operating system and file system supports providing such an identifier.

Attributes

Companion:
object
Source:
FileAttributes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Source:
FileAttributes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class CopyFlag extends AnyVal

Attributes

Companion:
object
Source:
CopyFlag.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any
object CopyFlag

Attributes

Companion:
class
Source:
CopyFlag.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class CopyFlags(value: List[CopyFlag])

Attributes

Companion:
object
Source:
CopyFlags.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object CopyFlags

Attributes

Companion:
class
Source:
CopyFlags.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Source:
FileSystemException.scala
Graph
Supertypes
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
FileSystemException.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Source:
FileSystemException.scala
Graph
Supertypes
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
FileSystemException.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait FileHandle[F[_]]

Provides the ability to read/write/lock/inspect a file in the effect F.

Provides the ability to read/write/lock/inspect a file in the effect F.

Attributes

Companion:
object
Source:
FileHandle.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object FileHandle

Attributes

Companion:
trait
Source:
FileHandle.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait FileKey

An opaque, unique identifier for a file.

An opaque, unique identifier for a file.

Paths which have the same FileKey (via univerals equals), as reported by Files[F].getBasicFileAttributes(path).fileKey, are guaranteed to reference the same file on the file system.

Note: not all operating systems and file systems support file keys, hence BasicFileAttributes#fileKey returns an Option[FileKey].

Attributes

Companion:
object
Source:
FileKey.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object FileKey

Attributes

Companion:
trait
Source:
FileKey.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
FileKey.type
class FileSystemException(message: String, cause: Throwable) extends IOException

Attributes

Companion:
object
Source:
FileSystemException.scala
Graph
Supertypes
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
class
Source:
FileSystemException.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
FileSystemException.scala
Graph
Supertypes
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
sealed trait Files[F[_]]

Provides operations related to working with files in the effect F.

Provides operations related to working with files in the effect F.

An instance is available for any effect F which has an Async[F] instance.

The operations on this trait are implemented for both the JVM and Node.js. Some operations only work on POSIX file systems, though such methods generally have "Posix" in their names (e.g. getPosixPermissions). A small number of methods are only available on the JVM (e.g. variant of list which takes a glob pattern) and are indicated as such in their ScalaDoc.

Attributes

Companion:
object
Source:
Files.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object Files

Attributes

Companion:
trait
Source:
Files.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Files.type
final class Flag extends AnyVal

Attributes

Companion:
object
Source:
Flag.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any
object Flag

Attributes

Companion:
class
Source:
Flag.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Flag.type
case class Flags(value: List[Flag])

Flags describing how a file should be opened by Files[F].open(path, flags).

Flags describing how a file should be opened by Files[F].open(path, flags).

Common flag combinations are available in the companion (e.g. Flags.Write) Custom combinations are supported via the apply method (e.g., Flags(Flag.Write, Flag.CreateNew)).

Attributes

Companion:
object
Source:
Flags.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Flags

Attributes

Companion:
class
Source:
Flags.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Flags.type

Attributes

Companion:
object
Source:
FileSystemException.scala
Graph
Supertypes
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
FileSystemException.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Source:
FileSystemException.scala
Graph
Supertypes
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
FileSystemException.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Path

Attributes

Companion:
object
Source:
Path.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Path

Attributes

Companion:
class
Source:
Path.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Path.type
sealed trait Permissions

Describes the permissions of a file / directory.

Describes the permissions of a file / directory.

Note: currently, there is only one subtype -- PosixPermissions. More types may be added in the future (e.g. Windows ACLs).

Attributes

Source:
Permissions.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
object
Source:
FileAttributes.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Source:
FileAttributes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait PosixPermission

Attributes

Companion:
object
Source:
Permissions.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object GroupExecute.type
object GroupRead.type
object GroupWrite.type
object OthersExecute.type
object OthersRead.type
object OthersWrite.type
object OwnerExecute.type
object OwnerRead.type
object OwnerWrite.type

Attributes

Companion:
trait
Source:
Permissions.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final class PosixPermissions extends Permissions

Describes POSIX file permissions, where the user, group, and others are each assigned read, write, and/or execute permissions.

Describes POSIX file permissions, where the user, group, and others are each assigned read, write, and/or execute permissions.

The toString method provides a 9 character string where the first three characters indicate user permissions, the next three group permissions, and the final three others permissions. For example, rwxr-xr-- indicates the owner has read, write and execute, the group as read and execute, and others have read.

The value field encodes the permissions in the lowest 9 bits of an integer. bits 8-6 indicate read, write, and execute for the owner, 5-3 for the group, and 2-0 for others. rwxr-xr-- has the integer value 111101100 = 492.

The toOctalString method returns the a 3 digit string, where the first character indicates read, write and execute for the owner, the second digit for the group, and the third digit for others. rwxr-xr-- has the octal string 754.

Constructors from strings, octal strings, and integers, as well as explicitly enumerating permissions, are provided in the companion.

Attributes

Companion:
object
Source:
Permissions.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
Permissions.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class ReadCursor[F[_]](file: FileHandle[F], offset: Long)

Associates a FileHandle with an offset in to the file.

Associates a FileHandle with an offset in to the file.

This encapsulates the pattern of incrementally reading bytes in from a file, a chunk at a time. Convenience methods are provided for working with pulls.

Attributes

Companion:
object
Source:
ReadCursor.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object ReadCursor

Attributes

Companion:
class
Source:
ReadCursor.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class WriteCursor[F[_]](file: FileHandle[F], offset: Long)

Associates a FileHandle with an offset in to the file.

Associates a FileHandle with an offset in to the file.

This encapsulates the pattern of incrementally writing bytes in to a file, a chunk at a time. Convenience methods are provided for working with pulls.

Attributes

Companion:
object
Source:
WriteCursor.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
WriteCursor.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type