Function in stdx_filesystem.h

x_fs_file_copy

Copy a file to a new path.

X_FILESYSTEM_API bool x_fs_file_copy(
 const char *file,
 const char *newFile
);

Parameters

const char *file
Source file path.
const char *newFile
Destination file path.

Returns

True on success, false on failure.

Function in stdx_filesystem.h

x_fs_file_delete

Delete a file.

X_FILESYSTEM_API bool x_fs_file_delete(const char *file);

Parameters

const char *file
File path to delete.

Returns

True on success, false on failure.

Function in stdx_filesystem.h

x_fs_file_rename

Rename (move) a file to a new path.

X_FILESYSTEM_API bool x_fs_file_rename(
 const char *file,
 const char *newFile
);

Parameters

const char *file
Source file path.
const char *newFile
Destination file path.

Returns

True on success, false on failure.