create_files_in() — tailwindcss Function Reference
Architecture documentation for the create_files_in() function in scanner.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 56624ac4_6945_32d1_2b96_700de264829d["create_files_in()"] 6b48c515_a72f_7a7d_7ea7_b80f71a82b19["scanner.rs"] 56624ac4_6945_32d1_2b96_700de264829d -->|defined in| 6b48c515_a72f_7a7d_7ea7_b80f71a82b19 15062065_cf6b_d794_5db7_667a2b756e64["scan_with_globs()"] 15062065_cf6b_d794_5db7_667a2b756e64 -->|calls| 56624ac4_6945_32d1_2b96_700de264829d ca3be31f_555a_9fe8_e607_ee66ba4ba6f2["it_should_scan_absolute_paths()"] ca3be31f_555a_9fe8_e607_ee66ba4ba6f2 -->|calls| 56624ac4_6945_32d1_2b96_700de264829d eba78649_af5d_4b50_2f84_439968485b44["it_should_pick_up_new_files()"] eba78649_af5d_4b50_2f84_439968485b44 -->|calls| 56624ac4_6945_32d1_2b96_700de264829d 84320a41_9e3d_47bb_81c8_644eff3ad8db["skips_ignore_files_outside_of_a_repo()"] 84320a41_9e3d_47bb_81c8_644eff3ad8db -->|calls| 56624ac4_6945_32d1_2b96_700de264829d 12fc0d65_f46c_7b7a_d878_0a6c18d48bee["test_explicitly_ignore_explicitly_allowed_files()"] 12fc0d65_f46c_7b7a_d878_0a6c18d48bee -->|calls| 56624ac4_6945_32d1_2b96_700de264829d 17607aed_270f_ab73_40c8_20cae52c4319["test_works_with_filenames_containing_glob_characters()"] 17607aed_270f_ab73_40c8_20cae52c4319 -->|calls| 56624ac4_6945_32d1_2b96_700de264829d 249b3962_1aa9_80a5_ad4e_015f0db7a813["test_ignore_files_can_be_included_with_custom_source_rule()"] 249b3962_1aa9_80a5_ad4e_015f0db7a813 -->|calls| 56624ac4_6945_32d1_2b96_700de264829d 456c681b_5664_1f7d_30bc_ec6186e04673["test_allow_default_ignored_files()"] 456c681b_5664_1f7d_30bc_ec6186e04673 -->|calls| 56624ac4_6945_32d1_2b96_700de264829d ff12afef_31d6_4f47_5d2d_cfebd340891c["test_allow_default_ignored_files_via_gitignore()"] ff12afef_31d6_4f47_5d2d_cfebd340891c -->|calls| 56624ac4_6945_32d1_2b96_700de264829d 0681881e_41d5_6fe7_96bf_7226236f4e9d["test_allow_explicit_node_modules_paths()"] 0681881e_41d5_6fe7_96bf_7226236f4e9d -->|calls| 56624ac4_6945_32d1_2b96_700de264829d 37d04bd1_4dd6_3db9_d1e5_44293a447f99["test_manually_scanning_files_should_follow_all_rules()"] 37d04bd1_4dd6_3db9_d1e5_44293a447f99 -->|calls| 56624ac4_6945_32d1_2b96_700de264829d fb70307b_4921_e3a6_49c7_f8ad82fe1dd4["test_glob_with_symlinks()"] fb70307b_4921_e3a6_49c7_f8ad82fe1dd4 -->|calls| 56624ac4_6945_32d1_2b96_700de264829d 2af96f21_864c_c0e1_f552_c947f2a3070c["test_globs_with_recursive_symlinks()"] 2af96f21_864c_c0e1_f552_c947f2a3070c -->|calls| 56624ac4_6945_32d1_2b96_700de264829d style 56624ac4_6945_32d1_2b96_700de264829d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/tests/scanner.rs lines 50–62
fn create_files_in(dir: &path::Path, paths: &[(&str, &str)]) {
// Create the necessary files
for (path, contents) in paths {
// Ensure we use the right path separator for the current platform
let path = dir.join(path.replace('/', path::MAIN_SEPARATOR.to_string().as_str()));
let parent = path.parent().unwrap();
if !parent.exists() {
fs::create_dir_all(parent).unwrap();
}
fs::write(path, contents).unwrap()
}
}
Domain
Subdomains
Defined In
Called By
- it_should_pick_up_new_files()
- it_should_scan_absolute_paths()
- scan_with_globs()
- skips_ignore_files_outside_of_a_repo()
- test_allow_default_ignored_files()
- test_allow_default_ignored_files_via_gitignore()
- test_allow_explicit_node_modules_paths()
- test_explicitly_ignore_explicitly_allowed_files()
- test_extract_used_css_variables_from_css()
- test_glob_with_symlinks()
- test_globs_with_recursive_symlinks()
- test_ignore_files_can_be_included_with_custom_source_rule()
- test_manually_scanning_files_should_follow_all_rules()
- test_partial_globs_with_symlinks()
- test_works_with_filenames_containing_glob_characters()
Source
Frequently Asked Questions
What does create_files_in() do?
create_files_in() is a function in the tailwindcss codebase, defined in crates/oxide/tests/scanner.rs.
Where is create_files_in() defined?
create_files_in() is defined in crates/oxide/tests/scanner.rs at line 50.
What calls create_files_in()?
create_files_in() is called by 15 function(s): it_should_pick_up_new_files, it_should_scan_absolute_paths, scan_with_globs, skips_ignore_files_outside_of_a_repo, test_allow_default_ignored_files, test_allow_default_ignored_files_via_gitignore, test_allow_explicit_node_modules_paths, test_explicitly_ignore_explicitly_allowed_files, and 7 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free