mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
added helper function for copying files
This commit is contained in:
parent
2dddd974be
commit
2879c62b07
1 changed files with 8 additions and 0 deletions
|
|
@ -461,3 +461,11 @@ def fill_reference_frames(frame_references, filepaths_by_frame):
|
|||
os.link(src_filepath, dst_filepath)
|
||||
else:
|
||||
shutil.copy(src_filepath, dst_filepath)
|
||||
|
||||
|
||||
def copy_render_file(src_path, dst_path):
|
||||
"""Create copy file of an image."""
|
||||
if hasattr(os, "link"):
|
||||
os.link(src_path, dst_path)
|
||||
else:
|
||||
shutil.copy(src_path, dst_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue