Skip to main content

Crate gravityfile_ops

Crate gravityfile_ops 

Source
Expand description

File operations engine for gravityfile.

This crate provides async file operations (copy, move, rename, create, delete) with progress reporting via channels, following the same pattern as the existing deletion implementation.

Re-exports§

pub use archive::ArchiveError;
pub use archive::ArchiveFormat;
pub use archive::ArchiveResult;
pub use archive::create_archive;
pub use archive::extract_archive;

Modules§

archive
Archive operations (extract and compress).

Structs§

CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.
Conflict
A conflict detected during a file operation.
CopyOptions
Options for copy operations.
MoveComplete
Completion result for move operations, including the moved pairs needed by the undo system.
MoveOptions
Options for move operations.
OperationComplete
Result of a completed operation.
OperationError
An error that occurred during a file operation.
OperationExecutor
Executor for file operations with unified interface.
OperationProgress
Progress information for an ongoing operation.
UndoEntry
An entry in the undo log.
UndoLog
Undo log with configurable maximum depth.

Enums§

ConflictKind
The kind of conflict encountered.
ConflictResolution
How to resolve a conflict.
CopyResult
Result sent through the channel during copy operations.
CreateResult
Result sent through the channel during create operations.
FileOperation
A file operation to be executed.
MoveResult
Result sent through the channel during move operations.
OperationResult
Unified result type for all operations.
OperationType
The type of operation being performed.
RenameResult
Result sent through the channel during rename operations.
UndoableOperation
An operation that can be undone.

Constants§

OPERATION_CHANNEL_SIZE
Default channel buffer size for operation progress updates.

Functions§

execute_undo
Execute an undo operation.
start_copy
Start an async copy operation.
start_create_directory
Start an async directory creation operation.
start_create_file
Start an async file creation operation.
start_move
Start an async move operation.
start_rename
Start an async rename operation.