io#
- olmo_core.io.get_bytes_range(path, bytes_start, num_bytes)[source]#
Get a range of bytes from a file.
- olmo_core.io.upload(source, target, save_overwrite=False)[source]#
Upload source file to a target location on GCS or S3.
- olmo_core.io.dir_is_empty(dir)[source]#
Check if a local directory is empty. This also returns true if the directory does not exist.
- olmo_core.io.clear_directory(dir)[source]#
Clear out the contents of a local or remote directory. GCS (
gs://) and S3 (s3://) URLs are supported.