parameters: (project_path, export_path, file_path)
docstring: Copies a file from the project to the backup folder.
docstring_summary: Copies a file from the project to the backup folder.
docstring_tokens: Copies a file from the project to the backup folder .
function: def copy_file(project_path, export_path, file_path):
      """
      Copies a file from the project to the backup folder.
      """
      src_file = os.path.join(project_path, file_path)
      if os.path.isfile(src_file):
          dst_file = os.path.join(export_path, file_path)
          os.makedirs(os.path.dirname(dst_file), exist_ok=True)
          if os.path.isfile(dst_file):
              os.chmod(dst_file, stat.S_IWRITE)
              os.remove(dst_file)
          shutil.copy2(src_file, dst_file)
function_tokens: def copy_file ( project_path , export_path , file_path ) : src_file = os . path . join ( project_path , file_path ) if os . path . isfile ( src_file ) : dst_file = os . path . join ( export_path , file_path ) os . makedirs ( os . path . dirname ( dst_file ) , exist_ok = True ) if os . path . isfile ( dst_file ) : os . chmod ( dst_file , stat . S_IWRITE ) os . remove ( dst_file ) shutil . copy2 ( src_file , dst_file )