mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
OP-4643 - fix files to delete
This commit is contained in:
parent
64a142ef64
commit
d2f8407111
1 changed files with 15 additions and 0 deletions
|
|
@ -222,6 +222,21 @@ class ExtractOIIOTranscode(publish.Extractor):
|
|||
renamed_files.append(file_name)
|
||||
new_repre["files"] = renamed_files
|
||||
|
||||
def _rename_in_representation(self, new_repre, files_to_convert,
|
||||
output_extension):
|
||||
"""Replace old extension with new one everywhere in representation."""
|
||||
if new_repre["name"] == new_repre["ext"]:
|
||||
new_repre["name"] = output_extension
|
||||
new_repre["ext"] = output_extension
|
||||
|
||||
renamed_files = []
|
||||
for file_name in files_to_convert:
|
||||
file_name, _ = os.path.splitext(file_name)
|
||||
file_name = '{}.{}'.format(file_name,
|
||||
output_extension)
|
||||
renamed_files.append(file_name)
|
||||
new_repre["files"] = renamed_files
|
||||
|
||||
def _translate_to_sequence(self, files_to_convert):
|
||||
"""Returns original list or list with filename formatted in single
|
||||
sequence format.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue