Add file extensions between invetories export [SCI-8943]

This commit is contained in:
Andrej 2023-08-08 10:56:23 +02:00
parent c63b7d7a64
commit 6b71b408f0

View file

@ -76,8 +76,8 @@ class RepositoriesExportJob < ApplicationJob
end
def append_file_suffix(file_name, suffix)
file_name = to_filesystem_name(file_name)
ext = File.extname(file_name)
file_name = to_filesystem_name(file_name)
File.basename(file_name, ext) + suffix + ext
end