CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
fs.h File Reference

Platform-specific filesystem operations. More...

#include <cx/cx.h>

Go to the source code of this file.

Data Structures

struct  FSStat
 
struct  FSSearchIter
 

Typedefs

typedef enum FSPathStatEnum FSPathStat
 
typedef struct FSStat FSStat
 
typedef struct FSSearch FSSearch
 
typedef struct FSSearchIter FSSearchIter
 

Enumerations

enum  FSPathStatEnum { FS_Nonexistent , FS_Directory , FS_File }
 

Functions

void pathFromPlatform (string *out, strref platformpath)
 
void pathToPlatform (string *out, strref path)
 
void fsCurDir (string *out)
 
bool fsSetCurDir (strref cur)
 
bool pathMakeAbsolute (string *out, strref path)
 
void fsExe (string *out)
 
void fsExeDir (string *out)
 
FSPathStat fsStat (strref path, FSStat *stat)
 
bool fsExist (strref path)
 
bool fsIsDir (strref path)
 
bool fsIsFile (strref path)
 
bool fsSetTimes (strref path, int64 modified, int64 accessed)
 
bool fsCreateDir (strref path)
 
bool fsCreateAll (strref path)
 
bool fsRemoveDir (strref path)
 
bool fsDelete (strref path)
 
bool fsRename (strref from, strref to)
 
bool fsSearchInit (FSSearchIter *iter, strref path, strref pattern, bool stat)
 
bool fsSearchNext (FSSearchIter *iter)
 
void fsSearchFinish (FSSearchIter *iter)
 
bool fsSearchValid (FSSearchIter *iter)
 

Detailed Description

Platform-specific filesystem operations.

Definition in file fs.h.