object zip
- Alphabetic
- By Inheritance
- zip
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(dest: Path, sources: Seq[ZipSource] = List(), excludePatterns: Seq[Regex] = List(), includePatterns: Seq[Regex] = List(), preserveMtimes: Boolean = false, deletePatterns: Seq[Regex] = List(), compressionLevel: Int = ...): Path
Zips the provided list of files and directories into a single ZIP archive.
Zips the provided list of files and directories into a single ZIP archive.
If
destalready exists and is a zip, performs modifications todestin place rather than creating a new zip.- dest
The path to the destination ZIP file.
- sources
A list of paths to files and directories to be zipped. Defaults to an empty list.
- excludePatterns
A list of regular expression patterns to exclude files from the ZIP archive. Defaults to an empty list.
- includePatterns
A list of regular expression patterns to include files in the ZIP archive. Defaults to an empty list (includes all files).
- preserveMtimes
Whether to preserve modification times (mtimes) of the files.
- deletePatterns
A list of regular expression patterns to delete files from an existing ZIP archive before appending new ones.
- compressionLevel
number from 0-9, where 0 is no compression and 9 is best compression. Defaults to -1 (default compression)
- returns
The path to the created ZIP archive.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
open(path: Path): ZipRoot
Opens a zip file as a filesystem root that you can operate on using
os.*APIs.Opens a zip file as a filesystem root that you can operate on using
os.*APIs. Note that you need to callclose()on the returnedZipRootwhen you are done with it, to avoid leaking filesystem resources -
def
stream(sources: Seq[ZipSource], excludePatterns: Seq[Regex] = List(), includePatterns: Seq[Regex] = List(), preserveMtimes: Boolean = false, compressionLevel: Int = ...): Writable
Zips a folder recursively and returns a geny.Writable for streaming the ZIP data.
Zips a folder recursively and returns a geny.Writable for streaming the ZIP data.
- excludePatterns
A list of regular expression patterns to exclude files during zipping. Defaults to an empty list.
- includePatterns
A list of regular expression patterns to include files in the ZIP archive. Defaults to an empty list (includes all files).
- preserveMtimes
Whether to preserve modification times (mtimes) of the files.
- returns
A geny.Writable object for writing the ZIP data.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object ZipSource
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated