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 a055cb70_8b14_31db_b201_57369f5fda5a["create_files_in()"] 340ddba0_15e4_a309_9dea_cf6d6e73381d["scanner.rs"] a055cb70_8b14_31db_b201_57369f5fda5a -->|defined in| 340ddba0_15e4_a309_9dea_cf6d6e73381d a53d0655_c789_b0d9_0c48_cfd60da7194b["scan_with_globs()"] a53d0655_c789_b0d9_0c48_cfd60da7194b -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a 198cd311_5d93_9913_d613_67e343d9a0ad["it_should_scan_absolute_paths()"] 198cd311_5d93_9913_d613_67e343d9a0ad -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a 74b503ee_f9b5_7bf2_41ed_7b7e3c11ad36["it_should_pick_up_new_files()"] 74b503ee_f9b5_7bf2_41ed_7b7e3c11ad36 -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a 70d9c9ff_f0f7_7ef0_b4ec_d31ebb4a94d9["skips_ignore_files_outside_of_a_repo()"] 70d9c9ff_f0f7_7ef0_b4ec_d31ebb4a94d9 -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a 85e4fad9_bfc0_c5a7_6ad9_cc78352624a1["test_explicitly_ignore_explicitly_allowed_files()"] 85e4fad9_bfc0_c5a7_6ad9_cc78352624a1 -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a e659c5e4_d863_78af_41c3_2a550ebc3f29["test_works_with_filenames_containing_glob_characters()"] e659c5e4_d863_78af_41c3_2a550ebc3f29 -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a 1d24c651_e65e_8f12_7b76_1af6502b44df["test_ignore_files_can_be_included_with_custom_source_rule()"] 1d24c651_e65e_8f12_7b76_1af6502b44df -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a 8f80b365_d8b8_4ae7_4da1_ac1e85ccd231["test_allow_default_ignored_files()"] 8f80b365_d8b8_4ae7_4da1_ac1e85ccd231 -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a ff5bf5bc_56ee_97f2_0cb4_17c908f3cc6a["test_allow_default_ignored_files_via_gitignore()"] ff5bf5bc_56ee_97f2_0cb4_17c908f3cc6a -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a 82b1b71d_c040_e8b7_4575_28329a63dafc["test_allow_explicit_node_modules_paths()"] 82b1b71d_c040_e8b7_4575_28329a63dafc -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a c9dca851_9ce9_eefe_8ed9_0060622a787f["test_manually_scanning_files_should_follow_all_rules()"] c9dca851_9ce9_eefe_8ed9_0060622a787f -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a 37949d89_3649_6c3e_a764_1db69e7caebe["test_glob_with_symlinks()"] 37949d89_3649_6c3e_a764_1db69e7caebe -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a c2f6d2ff_72ee_e003_210f_08b6674cc80c["test_globs_with_recursive_symlinks()"] c2f6d2ff_72ee_e003_210f_08b6674cc80c -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a style a055cb70_8b14_31db_b201_57369f5fda5a 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