Logo
stable
  • Home
  • SeqUtils
  • Configuration Utils
  • General Utils
    • prokbert.general_utils.check_expected_columns
    • prokbert.general_utils.is_valid_primary_key
    • prokbert.general_utils.get_non_empty_files
    • prokbert.general_utils.truncate_zero_columns
    • prokbert.general_utils.create_directory_for_filepath
    • prokbert.general_utils.check_file_exists
    • prokbert.general_utils.count_gpus
    • prokbert.general_utils.create_hard_links
    • prokbert.general_utils.create_selected_hard_links
    • prokbert.general_utils.remove_hidden_files
  • ProkBERT DataCollator
  • Datasets
  • ProkBERT Tokenizer
  • Training Utils
ProkBert
  • »
  • General Utils »
  • prokbert.general_utils.create_hard_links
  • Edit on GitHub

prokbert.general_utils.create_hard_links

prokbert.general_utils.create_hard_links(source_directory: str, target_directory: str, blacklist: list = []) → None

Creates hard links for all files from the source directory to the target directory.

Parameters
  • source_directory (str) – The directory containing the original files.

  • target_directory (str) – The directory where hard links will be created.

  • blacklist (list) – List of filenames to exclude from creating hard links.

Returns

None

Previous Next

© Copyright 2023 NBRG-PPCU. Revision cabb3f7e.

Built with Sphinx using a theme provided by Read the Docs.