Home / Function/ create_files_in() — tailwindcss Function Reference

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
  3a07392e_ccde_2e1e_c4dd_a2d547d20807["create_files_in()"]
  4e97b231_bdcb_50f8_8ad3_53d02c45a8bb["scan_with_globs()"]
  4e97b231_bdcb_50f8_8ad3_53d02c45a8bb -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  19491633_e8da_829c_61eb_809113aef7f7["it_should_scan_absolute_paths()"]
  19491633_e8da_829c_61eb_809113aef7f7 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  29c7b962_35ac_237a_3019_9f8c6291163c["it_should_pick_up_new_files()"]
  29c7b962_35ac_237a_3019_9f8c6291163c -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  b0eed085_0d98_7ab3_d68c_88fcc98be578["skips_ignore_files_outside_of_a_repo()"]
  b0eed085_0d98_7ab3_d68c_88fcc98be578 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  f2b42c49_36d8_30cc_af48_322414c160b9["test_explicitly_ignore_explicitly_allowed_files()"]
  f2b42c49_36d8_30cc_af48_322414c160b9 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  300482fe_d158_0060_d6a0_6e8a5e3a33c3["test_works_with_filenames_containing_glob_characters()"]
  300482fe_d158_0060_d6a0_6e8a5e3a33c3 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  415c6105_0940_8090_9fca_fe70ca64420a["test_ignore_files_can_be_included_with_custom_source_rule()"]
  415c6105_0940_8090_9fca_fe70ca64420a -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  6719cf34_6326_c3dd_3ee4_499e5d00a2ea["test_allow_default_ignored_files()"]
  6719cf34_6326_c3dd_3ee4_499e5d00a2ea -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  d264aa60_79fb_23eb_7031_2ed75dea80d2["test_allow_default_ignored_files_via_gitignore()"]
  d264aa60_79fb_23eb_7031_2ed75dea80d2 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  ebd5b7d4_b9b6_20e6_6fbe_145a4a1c27c9["test_allow_explicit_node_modules_paths()"]
  ebd5b7d4_b9b6_20e6_6fbe_145a4a1c27c9 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  5f94e519_173f_c1ec_3e31_900d931e65cb["test_manually_scanning_files_should_follow_all_rules()"]
  5f94e519_173f_c1ec_3e31_900d931e65cb -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  d9d8a10b_5803_fdce_f02e_68f780207b18["test_glob_with_symlinks()"]
  d9d8a10b_5803_fdce_f02e_68f780207b18 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  d9d09e09_3713_2ac9_20d7_609afd95d530["test_globs_with_recursive_symlinks()"]
  d9d09e09_3713_2ac9_20d7_609afd95d530 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  43082d51_6d83_3a5f_34fc_cee38bdbbc32["test_partial_globs_with_symlinks()"]
  43082d51_6d83_3a5f_34fc_cee38bdbbc32 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  style 3a07392e_ccde_2e1e_c4dd_a2d547d20807 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

Frequently Asked Questions

What does create_files_in() do?
create_files_in() is a function in the tailwindcss codebase.
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