nextflow.io

nextflow.io.get_file_creation_time(path, timezone=None, io=None)

Gets the creation time of a file.

Parameters:
  • path (str) – the location of the file.

  • timezone (str) – an optional timezone to convert the creation time to.

  • io – an optional custom io object to handle file times.

Return type:

datetime.datetime

nextflow.io.get_file_text(path, io=None)

Gets the contents of a text file, if it exists.

Parameters:
  • path (str) – the location of the file.

  • io – an optional custom io object to handle reading.

Return type:

str

nextflow.io.get_process_ids_to_paths(process_ids, execution_path, io=None)

Takes a list of nine character process IDs and maps them to the full directories they represent.

Parameters:
  • process_ids (list) – a list of nine character process IDs.

  • execution_path (str) – the path to the execution directory.

  • io – an optional custom io object to handle globbing.

Return type:

dict