Trait

poly.io

Directory

Related Doc: package io

Permalink

trait Directory[S <: FileSystem] extends ReadOnlyDirectory[_29.type] with Path[_29.type]

Represents a directory under a specific file system.

Self Type
S.Directory
Since

0.2.0

Linear Supertypes
Path[S], ReadOnlyDirectory[S], ReadOnlyPath[S], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Directory
  2. Path
  3. ReadOnlyDirectory
  4. ReadOnlyPath
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def /(s: String): FileSystem._29.type.Directory

    Permalink
    Definition Classes
    ReadOnlyDirectory
  2. abstract def /!(s: String): FileSystem._29.type.File

    Permalink
    Definition Classes
    ReadOnlyDirectory
  3. abstract def /@(s: String): FileSystem._29.type.SymLink

    Permalink
    Definition Classes
    ReadOnlyDirectory
  4. abstract def children: Iterable[FileSystem._29.type.Path]

    Permalink

    Returns an iterable sequence of all the immediate children of this directory.

    Returns an iterable sequence of all the immediate children of this directory.

    Definition Classes
    ReadOnlyDirectory
  5. abstract def contains(name: String): Boolean

    Permalink
    Definition Classes
    ReadOnlyDirectory
  6. abstract def createDirectory(name: String): FileSystem._29.type.Directory

    Permalink
  7. abstract def createFile(name: String): FileSystem._29.type.File

    Permalink
  8. abstract def createSymLink(name: String, target: FileSystem._29.type.Path): FileSystem._29.type.SymLink

    Permalink
  9. abstract def delete(): Unit

    Permalink

    Removes this file or directory.

    Removes this file or directory.

    Definition Classes
    Path
  10. abstract val fileSystem: _29.type

    Permalink

    Returns a reference to the file system in which this file resides.

    Returns a reference to the file system in which this file resides.

    Definition Classes
    ReadOnlyPath
  11. abstract def files: Iterable[FileSystem._29.type.File]

    Permalink

    Returns the files in this directory.

    Returns the files in this directory.

    Definition Classes
    ReadOnlyDirectory
  12. abstract def isExecutable: Boolean

    Permalink
    Definition Classes
    ReadOnlyPath
  13. abstract def isHidden: Boolean

    Permalink
    Definition Classes
    ReadOnlyPath
  14. abstract def isReadable: Boolean

    Permalink
    Definition Classes
    ReadOnlyPath
  15. abstract def isWriteable: Boolean

    Permalink
    Definition Classes
    ReadOnlyPath
  16. abstract def path: Array[String]

    Permalink

    Returns an array of the components of this path.

    Returns an array of the components of this path.

    Definition Classes
    ReadOnlyPath
    Example:
    1. Directory("/home/admin/projects") = ("home", "admin", "projects")
  17. abstract def permissions: Set[PosixFilePermission]

    Permalink
    Definition Classes
    ReadOnlyPath
  18. abstract def rename(newName: String): Unit

    Permalink
    Definition Classes
    Path
  19. abstract def subdirectories: Iterable[FileSystem._29.type.Directory]

    Permalink

    Returns a lazy stream of subdirectories in this directory (not including subdirectories of subdirectories).

    Returns a lazy stream of subdirectories in this directory (not including subdirectories of subdirectories).

    Definition Classes
    ReadOnlyDirectory

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def /(rl: RelativeSymLink): FileSystem._29.type.SymLink

    Permalink
    Definition Classes
    ReadOnlyPath
  4. def /(rf: RelativeFile): FileSystem._29.type.File

    Permalink
    Definition Classes
    ReadOnlyPath
  5. def /(rd: RelativeDirectory): FileSystem._29.type.Directory

    Permalink
    Definition Classes
    ReadOnlyPath
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def baseName: String

    Permalink

    Returns the basename of a file name (without the extension part).

    Returns the basename of a file name (without the extension part).

    Definition Classes
    ReadOnlyPath
  9. def childrenMap: Map[String, FileSystem._29.type.Path]

    Permalink

    Returns an map that maps file names to their path object.

    Returns an map that maps file names to their path object.

    Definition Classes
    ReadOnlyDirectory
  10. def clear(): Unit

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def copyTo[DS <: FileSystem](destination: ReadOnlyPath.copyTo.DS.Directory)(implicit ft: Copying[_29.type, DS]): Unit

    Permalink
    Definition Classes
    ReadOnlyPath
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    ReadOnlyPath → AnyRef → Any
  15. def extension: String

    Permalink

    Returns the extension of this file.

    Returns the extension of this file. The extension is lowercased.

    returns

    If there's no extension, the empty string "" is returned.

    Definition Classes
    ReadOnlyPath
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def fullName: String

    Permalink

    Returns the full name (including the absolute path) of this file.

    Returns the full name (including the absolute path) of this file.

    Definition Classes
    ReadOnlyPath
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    ReadOnlyPath → AnyRef → Any
  20. final def isDirectory: Boolean

    Permalink
    Definition Classes
    ReadOnlyDirectoryReadOnlyPath
  21. final def isFile: Boolean

    Permalink
    Definition Classes
    ReadOnlyDirectoryReadOnlyPath
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def isSymLink: Boolean

    Permalink
    Definition Classes
    ReadOnlyDirectoryReadOnlyPath
  24. def moveTo[DS <: FileSystem](destination: Path.moveTo.DS.Directory)(implicit ft: Copying[_29.type, DS]): Unit

    Permalink
    Definition Classes
    Path
  25. def name: String

    Permalink

    Returns the name (without the path section) of this file or directory.

    Returns the name (without the path section) of this file or directory.

    Definition Classes
    ReadOnlyPath
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def parent: FileSystem._29.type.Directory

    Permalink

    Returns the parent directory of this path.

    Returns the parent directory of this path.

    Definition Classes
    ReadOnlyPath
  30. def recursiveChildren: Iterable[FileSystem._29.type.Path]

    Permalink

    Returns an iterable sequence of all children of this directory, recursively.

    Returns an iterable sequence of all children of this directory, recursively.

    Definition Classes
    ReadOnlyDirectory
  31. def recursiveFiles: Iterable[FileSystem._29.type.File]

    Permalink
    Definition Classes
    ReadOnlyDirectory
  32. def recursiveSubdirectories: Iterable[FileSystem._29.type.Directory]

    Permalink
    Definition Classes
    ReadOnlyDirectory
  33. def relativize(that: FileSystem._29.type.Path): RelativePath

    Permalink
    Definition Classes
    ReadOnlyPath
  34. def relativize(that: FileSystem._29.type.File): RelativeFile

    Permalink
    Definition Classes
    ReadOnlyPath
  35. def relativize(that: FileSystem._29.type.Directory): RelativeDirectory

    Permalink
    Definition Classes
    ReadOnlyPath
  36. def resolve(rl: RelativeSymLink): FileSystem._29.type.SymLink

    Permalink
    Definition Classes
    ReadOnlyPath
  37. def resolve(rf: RelativeFile): FileSystem._29.type.File

    Permalink
    Definition Classes
    ReadOnlyPath
  38. def resolve(rd: RelativeDirectory): FileSystem._29.type.Directory

    Permalink
    Definition Classes
    ReadOnlyPath
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toString(): String

    Permalink
    Definition Classes
    ReadOnlyPath → AnyRef → Any
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Path[S]

Inherited from ReadOnlyDirectory[S]

Inherited from ReadOnlyPath[S]

Inherited from AnyRef

Inherited from Any

Ungrouped