Skip to content

v0.2.0

Compare
Choose a tag to compare
@sclu1034 sclu1034 released this 16 Mar 20:02
· 20 commits to master since this release
d01577e

Added

  • file.is_instance: Static function to check if a value is a file handle.
  • file.create: Create an empty file.
  • file.read_string: Read the entire contents of a file into memory. Replaces file.read_all.
  • file.read_bytes: Read the specified number of bytes from the file.
  • file.get_path: Get the path the file handle points to.
  • New module filesystem: Utilities for handling directories and other file system properties.
  • filesystem.make_directory: Create a directory at a given path.
  • filesystem.iterate_contents: Run a function against the entries of a directory, recursively.
  • filesystem.list_contents: List the contents of a directory.
  • filesystem.remove_directory: Remove a directory.

Changed

  • file.move: Now also allows file handlers and instances of Gio.File as destination parameter.
  • file.iterate_lines: Renamed from file.read_lines.