Add and use escapeFilePath

This commit is contained in:
2024-04-27 21:48:07 +02:00
parent b50f013234
commit 561ec9d1e0
3 changed files with 8 additions and 5 deletions

View File

@@ -69,4 +69,7 @@ def getRawColorChannel(raw, color):
return imageNpArray
def isARawImage(imageFilePath):
return any([imageFileName.lower().endswith(f'.{rawImageFileExtension}') for rawImageFileExtension in RAW_IMAGE_FILE_EXTENSIONS])
return any([imageFileName.lower().endswith(f'.{rawImageFileExtension}') for rawImageFileExtension in RAW_IMAGE_FILE_EXTENSIONS])
def escapeFilePath(filePath):
return filePath.replace('/', '_')