Skip to content

Commit c0bd500

Browse files
committed
Refactor: Split listing/operations.rs
1 parent 707a96a commit c0bd500

8 files changed

Lines changed: 694 additions & 923 deletions

File tree

apps/desktop/src-tauri/src/file_system/listing/mod.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
1-
//! Directory listing module - operations, caching, metadata, sorting, streaming.
1+
//! Directory listing module - reading, operations, caching, metadata, sorting, streaming.
22
33
pub(crate) mod caching;
44
pub(crate) mod metadata;
55
pub(crate) mod operations;
6+
pub(crate) mod reading;
67
pub(crate) mod sorting;
78
pub(crate) mod streaming;
89

910
// Re-export types for backwards compatibility (they were originally defined in operations.rs)
1011
// These re-exports make the types available both externally and locally in this module
1112
pub use metadata::{ExtendedMetadata, FileEntry};
1213
pub use operations::{
13-
ListingStartResult, ListingStats, ResortResult, StreamingListingStartResult, cancel_listing, find_file_index,
14-
get_file_at, get_file_range, get_listing_stats, get_max_filename_width, get_total_count, list_directory_end,
15-
list_directory_start_streaming, list_directory_start_with_volume, resort_listing,
14+
ListingStartResult, ListingStats, ResortResult, find_file_index, get_file_at, get_file_range, get_listing_stats,
15+
get_max_filename_width, get_total_count, list_directory_end, list_directory_start_with_volume, resort_listing,
1616
};
17+
pub use reading::{get_single_entry, list_directory_core};
18+
pub use sorting::{SortColumn, SortOrder};
19+
pub use streaming::{StreamingListingStartResult, cancel_listing, list_directory_start_streaming};
20+
1721
// macOS-only exports (used by drag operations)
1822
#[cfg(target_os = "macos")]
1923
pub use operations::get_paths_at_indices;
20-
pub use sorting::{SortColumn, SortOrder};
2124

2225
// Internal re-exports for file_system module internals (pub(crate) for crate-internal use)
23-
pub(crate) use operations::{
24-
get_listing_entries, get_listings_by_volume_prefix, get_single_entry, list_directory_core, update_listing_entries,
25-
};
26+
pub(crate) use operations::{get_listing_entries, get_listings_by_volume_prefix, update_listing_entries};
2627

2728
#[cfg(test)]
2829
mod hidden_files_test;

0 commit comments

Comments
 (0)