Module file

Source
Expand description

File management system with async operations and monitoring

This module provides comprehensive file management capabilities including:

  • Async file operations (read, write, copy, move, delete)
  • File watching and change detection
  • File metadata and permissions management
  • Atomic file operations with rollback
  • File compression and decompression
  • Temporary file management
  • File type detection and validation
  • Progress tracking for large operations

Structs§

FileChangeEvent
File change event
FileManager
Main file manager
FileMetadata
File metadata information
FileOperationOptions
File operation options
FileOperationProgress
File operation progress information
FileWatcher
File watcher for monitoring file system changes

Enums§

FileChangeType
File change types
FileOperationStatus
File operation status
FileType
File type enumeration based on content and extension

Functions§

calculate_file_hash
Calculate SHA-256 hash of a file
get_file_extension
Get file extension as lowercase string
safe_path_join
Join paths safely, preventing directory traversal
sanitize_filename
Sanitize filename by removing/replacing invalid characters