sdl.filesystem

SDL FileSystem

Members

Aliases

SDL_EnumerateDirectoryCallback
alias SDL_EnumerateDirectoryCallback = SDL_EnumerationResult function(void* userdata, const(char)* dirname, const(char)* fname)

Callback for directory enumeration.

Enums

SDL_EnumerationResult
enum SDL_EnumerationResult

Possible results from an enumeration callback.

SDL_Folder
enum SDL_Folder

The type of the OS-provided default folder for a specific purpose.

SDL_GlobFlags
enum SDL_GlobFlags

Flags for path matching.

SDL_PathType
enum SDL_PathType

Types of filesystem entries.

Functions

SDL_CopyFile
bool SDL_CopyFile(const(char)* oldpath, const(char)* newpath)

Copy a file.

SDL_CreateDirectory
bool SDL_CreateDirectory(const(char)* path)

Create a directory, and any missing parent directories.

SDL_EnumerateDirectory
bool SDL_EnumerateDirectory(const(char)* path, SDL_EnumerateDirectoryCallback callback, void* userdata)

Enumerate a directory through a callback function.

SDL_GetBasePath
const(char)* SDL_GetBasePath()

Get the directory where the application was run from.

SDL_GetCurrentDirectory
char* SDL_GetCurrentDirectory()

Get what the system believes is the "current working directory."

SDL_GetPathInfo
bool SDL_GetPathInfo(const(char)* path, SDL_PathInfo* info)

Get information about a filesystem path.

SDL_GetPrefPath
char* SDL_GetPrefPath(const(char)* org, const(char)* app)

Get the user-and-app-specific path where files can be written.

SDL_GetUserFolder
const(char)* SDL_GetUserFolder(SDL_Folder folder)

Finds the most suitable user folder for a specific purpose.

SDL_GlobDirectory
char** SDL_GlobDirectory(const(char)* path, const(char)* pattern, SDL_GlobFlags flags, int* count)

Enumerate a directory tree, filtered by pattern, and return a list.

SDL_RemovePath
bool SDL_RemovePath(const(char)* path)

Remove a file or an empty directory.

SDL_RenamePath
bool SDL_RenamePath(const(char)* oldpath, const(char)* newpath)

Rename a file or directory.

Structs

SDL_PathInfo
struct SDL_PathInfo

Information about a path on the filesystem.

See Also

Meta

License

Subject to the terms of the Zlib License, as written in the LICENSE file.

Authors

Luna Nielsen