1 viewer
rust 1,849,384 · typescript 232,426 · javascript 131,078 · python 19,227 · 6,366 files · digest 815dcbacab85 · built in 1.4 s · crystals off
crates/cre8-app-editor/src/filesystem.rs
Items
const WORKSPACE_REGISTRY_ENV const DEFAULT_TREE_DEPTH const DEFAULT_TREE_ENTRY_LIMIT const DEFAULT_FILE_READ_LIMIT_BYTES const DEFAULT_FILE_WRITE_LIMIT_BYTES const MAX_TREE_DEPTH const MAX_TREE_ENTRY_LIMIT const COLLAPSED_DIR_NAMES struct FileTreeSnapshot struct FileTreeEntry struct EditorFileSnapshot const LANGUAGES
Functions
By call-graph weight (PageRank; 1.0 is the average function). 54 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| display_pathsrc/filesystem.rs:580 | fn | 3 | 1 | 5 | 0 | 3.2 | |
| resolve_workspace_rootsrc/filesystem.rs:344 | fn | 23 | 6 | 4 | 4 | 2.9 | |
| registered_workspacessrc/filesystem.rs:18 | fn | 5 | 2 | 2 | 1 | 2.4 | |
| read_workspace_filesrc/filesystem.rs:151 | fn | 13 | 1 | 8 | 5 | 2.3 | |
| canonical_workspace_rootsrc/filesystem.rs:165 | fn | 3 | 1 | 8 | 1 | 2.1 | |
| atomic_write_expectedsrc/filesystem.rs:270 | fn | 29 | 8 | 5 | 3 | 2.1 | |
| snapshot_workspace_treesrc/filesystem.rs:127 | fn | 23 | 1 | 5 | 4 | 1.8 | |
| registered_workspace_rootsrc/filesystem.rs:24 | fn | 7 | 5 | 3 | 2 | 1.7 | |
| root_namesrc/filesystem.rs:562 | fn | 7 | 1 | 4 | 1 | 1.6 | |
| relative_pathsrc/filesystem.rs:570 | fn | 9 | 1 | 5 | 0 | 1.5 | |
| absolute_workspace_root_allowedsrc/filesystem.rs:428 | fn | 3 | 1 | 1 | 1 | 1.5 | |
| readable_file_metadatasrc/filesystem.rs:169 | fn | 13 | 3 | 2 | 0 | 1.4 | |
| editor_file_snapshotsrc/filesystem.rs:188 | fn | 21 | 1 | 2 | 5 | 1.4 | |
| ensure_child_in_workspacesrc/filesystem.rs:417 | fn | 6 | 2 | 2 | 0 | 1.3 | |
| compare_dir_entriessrc/filesystem.rs:530 | fn | 8 | 1 | 2 | 0 | 1.2 | |
| build_entrysrc/filesystem.rs:447 | fn | 25 | 5 | 2 | 9 | 1.1 | |
| absolute_workspace_rootsrc/filesystem.rs:424 | fn | 3 | 1 | 2 | 1 | 1.1 | |
| ensure_root_in_cwdsrc/filesystem.rs:371 | fn | 8 | 2 | 1 | 0 | 1.1 | |
| clean_workspace_refsrc/filesystem.rs:115 | fn | 3 | 1 | 5 | 0 | 1.1 | |
| write_workspace_filesrc/filesystem.rs:210 | fn | 16 | 1 | 5 | 6 | 1.1 | |
| replace_existing_windowssrc/filesystem.rs:301 | fn | 28 | 2 | 1 | 1 | 1.1 | |
| write_workspace_file_checkedsrc/filesystem.rs:258 | fn | 7 | 1 | 1 | 3 | 1 | |
| entry_namesrc/filesystem.rs:550 | fn | 11 | 2 | 4 | 2 | 1 | |
| resolve_workspace_child_for_writesrc/filesystem.rs:398 | fn | 18 | 5 | 3 | 1 | 0.9 | |
| ensure_write_sizesrc/filesystem.rs:330 | fn | 6 | 2 | 2 | 0 | 0.9 | |
| read_utf8_file_contentsrc/filesystem.rs:183 | fn | 4 | 1 | 1 | 0 | 0.9 | |
| resolve_workspace_childsrc/filesystem.rs:380 | fn | 17 | 5 | 1 | 1 | 0.9 | |
| language_for_extensionsrc/filesystem.rs:589 | fn | 16 | 1 | 2 | 0 | 0.8 | |
| should_collapse_dirsrc/filesystem.rs:543 | fn | 6 | 1 | 3 | 0 | 0.8 | |
| bounded_tree_depthsrc/filesystem.rs:119 | fn | 3 | 1 | 2 | 0 | 0.8 | |
| bounded_tree_entry_limitsrc/filesystem.rs:123 | fn | 3 | 1 | 2 | 0 | 0.8 | |
| sorted_dir_entriessrc/filesystem.rs:524 | fn | 5 | 1 | 1 | 1 | 0.8 | |
| language_for_pathsrc/filesystem.rs:584 | fn | 4 | 1 | 1 | 2 | 0.7 | |
| entry_kindsrc/filesystem.rs:480 | fn | 9 | 3 | 3 | 0 | 0.7 | |
| entry_errorsrc/filesystem.rs:494 | fn | 3 | 1 | 3 | 0 | 0.7 | |
| ssr_file_tree_enabledsrc/filesystem.rs:443 | fn | 3 | 1 | 1 | 1 | 0.7 | |
| file_type_flagssrc/filesystem.rs:473 | fn | 6 | 1 | 2 | 0 | 0.7 | |
| entry_sizesrc/filesystem.rs:490 | fn | 3 | 1 | 2 | 0 | 0.7 | |
| atomic_writesrc/filesystem.rs:266 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| ensure_write_targetsrc/filesystem.rs:337 | fn | 6 | 2 | 1 | 0 | 0.6 | |
| populate_dir_childrensrc/filesystem.rs:498 | fn | 25 | 4 | 2 | 2 | 0.6 | |
| export_workspace_package_revisionsrc/filesystem.rs:230 | fn | 25 | 12 | 2 | 2 | 0.6 | |
| count_dir_childrensrc/filesystem.rs:539 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| registered_aliases_never_fall_back_or_accept_paths_as_idssrc/filesystem.rs:36 | fn | 6 | 2 | 0 | 1 | 0.5 | |
| registered_alias_resolves_the_same_approved_root_as_toolssrc/filesystem.rs:43 | fn | 5 | 1 | 0 | 3 | 0.5 | |
| is_zerosrc/filesystem.rs:111 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| nested_file_paths_use_portable_separatorssrc/filesystem.rs:609 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| bounds_tree_optionssrc/filesystem.rs:626 | fn | 9 | 1 | 0 | 3 | 0.5 | |
| snapshots_relative_workspace_directorysrc/filesystem.rs:637 | fn | 21 | 1 | 0 | 1 | 0.5 | |
| snapshot_collapses_and_truncates_known_heavy_dirssrc/filesystem.rs:660 | fn | 22 | 1 | 0 | 1 | 0.5 | |
| reads_and_writes_workspace_filesrc/filesystem.rs:684 | fn | 20 | 1 | 0 | 2 | 0.5 | |
| file_errors_languages_and_absolute_roots_are_explicitsrc/filesystem.rs:706 | fn | 133 | 1 | 0 | 13 | 0.5 | |
| rejects_workspace_escapesrc/filesystem.rs:841 | fn | 4 | 2 | 0 | 1 | 0.5 | |
| rejects_workspace_ref_escapesrc/filesystem.rs:847 | fn | 21 | 1 | 0 | 3 | 0.5 |
Source not readable from this process.