Blender V4.3
fileops_apple.mm File Reference
import <Foundation/Foundation.h>
#include "BLI_fileops.h"
#include "BLI_path_utils.hh"

Go to the source code of this file.

Functions

int BLI_delete_soft (const char *filepath, const char **r_error_message)
 

Detailed Description

macOS specific implementations for fileops{_c}.cc.

Definition in file fileops_apple.mm.

Function Documentation

◆ BLI_delete_soft()

int BLI_delete_soft ( const char * filepath,
const char ** r_error_message )

Soft deletes the specified file or directory (depending on dir) by moving the files to the recycling bin, optionally doing recursive delete of directory contents.

Returns
zero on success (matching 'remove' behavior).

Definition at line 16 of file fileops_apple.mm.