File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -153,17 +153,15 @@ def generate_native_viewable_and_light_viewable(
153153 name = data .name ()
154154 object_type = geode_functions .get_object_type (geode_object )
155155
156- additional_files_copied = [] # List to store files that are successfully copied
156+ additional_files_copied = []
157157 if original_filename :
158158 additional = geode_functions .additional_files (geode_object , original_filename )
159159 for additional_file in additional .mandatory_files + additional .optional_files :
160160 if not additional_file .is_missing :
161- # Construct the source path for the additional file
162161 source_path = os .path .join (
163162 os .path .dirname (original_filename ), additional_file .filename
164163 )
165164 if os .path .exists (source_path ):
166- # Construct the destination path and ensure the directory exists
167165 dest_path = os .path .join (data_path , additional_file .filename )
168166 os .makedirs (os .path .dirname (dest_path ), exist_ok = True )
169167 shutil .copy2 (source_path , dest_path )
You can’t perform that action at this time.
0 commit comments