|
1 | | -//! Directory listing module - operations, caching, metadata, sorting, streaming. |
| 1 | +//! Directory listing module - reading, operations, caching, metadata, sorting, streaming. |
2 | 2 |
|
3 | 3 | pub(crate) mod caching; |
4 | 4 | pub(crate) mod metadata; |
5 | 5 | pub(crate) mod operations; |
| 6 | +pub(crate) mod reading; |
6 | 7 | pub(crate) mod sorting; |
7 | 8 | pub(crate) mod streaming; |
8 | 9 |
|
9 | 10 | // Re-export types for backwards compatibility (they were originally defined in operations.rs) |
10 | 11 | // These re-exports make the types available both externally and locally in this module |
11 | 12 | pub use metadata::{ExtendedMetadata, FileEntry}; |
12 | 13 | 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, |
16 | 16 | }; |
| 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 | + |
17 | 21 | // macOS-only exports (used by drag operations) |
18 | 22 | #[cfg(target_os = "macos")] |
19 | 23 | pub use operations::get_paths_at_indices; |
20 | | -pub use sorting::{SortColumn, SortOrder}; |
21 | 24 |
|
22 | 25 | // 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}; |
26 | 27 |
|
27 | 28 | #[cfg(test)] |
28 | 29 | mod hidden_files_test; |
|
0 commit comments