Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kDirectory.h
Go to the documentation of this file.
1
10 #ifndef K_API_DIRECTORY_H
11 #define K_API_DIRECTORY_H
12
13 #include <kApi/kApiDef.h>
14
15 kBeginHeader()
16
17
23 typedef kObject kDirectory;
24
34 kFx(kStatus) kDirectory_Create(const kChar* directory);
35
43 kFx(kBool) kDirectory_Exists(const kChar* directory);
44
53 kFx(kStatus) kDirectory_Copy(const kChar* source, const kChar* destination);
54
63 kFx(kStatus) kDirectory_Move(const kChar* source, const kChar* destination);
64
72 kFx(kStatus) kDirectory_Delete(const kChar* directory);
73
81 kFx(kStatus) kDirectory_DeleteEntries(const kChar* directory);
82
93 kFx(kStatus) kDirectory_ListFiles(const kChar* directory, kArrayList files);
94
105 kFx(kStatus) kDirectory_ListDirectories(const kChar* directory, kArrayList directories);
106
117 kFx(kStatus) kDirectory_ListEntries(const kChar* directory, kArrayList entries);
118
126 kFx(kStatus) kDirectory_SetCurrent(const kChar* directory);
127
136 kFx(kStatus) kDirectory_Current(kChar* directory, kSize capacity);
137
146 kFx(kStatus) kDirectory_Application(kChar* directory, kSize capacity);
147
156 kFx(kStatus) kDirectory_Temp(kChar* directory, kSize capacity);
157
169 kFx(kStatus) kDirectory_AppConfig(const kChar* appName, kChar* directory, kSize capacity);
170
182 kFx(kStatus) kDirectory_AppData(const kChar* appName, kChar* directory, kSize capacity);
183
194 kFx(kStatus) kDirectory_Plugin(kChar* directory, kSize capacity);
195
196 kEndHeader()
197
198 #include <kApi/Io/kDirectory.x.h>
199
200 #endif
kDirectory::kDirectory_Current
kStatus kDirectory_Current(kChar *directory, kSize capacity)
Gets the current working directory.
kDirectory::kDirectory_SetCurrent
kStatus kDirectory_SetCurrent(const kChar *directory)
Sets the current working directory.
kDirectory
Collection of directory-related functions.
kDirectory::kDirectory_Copy
kStatus kDirectory_Copy(const kChar *source, const kChar *destination)
Copies the specified directory, including all of its contents.
kDirectory::kDirectory_Move
kStatus kDirectory_Move(const kChar *source, const kChar *destination)
Moves the specified directory, including all of its contents.
kSize
Represents an unsigned integer that can store a pointer address.
kChar
Represents a single unit (byte) in a UTF-8 character.
kDirectory::kDirectory_Application
kStatus kDirectory_Application(kChar *directory, kSize capacity)
Gets the directory in which the application executable file resides.
kDirectory::kDirectory_ListDirectories
kStatus kDirectory_ListDirectories(const kChar *directory, kArrayList directories)
Creates a list of the sub-directories in the specified directory.
kDirectory::kDirectory_DeleteEntries
kStatus kDirectory_DeleteEntries(const kChar *directory)
Deletes the directories and files in the specified directory, but not the directory itself...
kDirectory::kDirectory_Delete
kStatus kDirectory_Delete(const kChar *directory)
Deletes the specified directory, including all of its contents.
kApiDef.h
Core Zen type declarations.
kDirectory::kDirectory_Temp
kStatus kDirectory_Temp(kChar *directory, kSize capacity)
Gets the path of a directory suitable for temporary files.
kDirectory::kDirectory_ListEntries
kStatus kDirectory_ListEntries(const kChar *directory, kArrayList entries)
Creates a list of the file system entries in the specified directory.
kDirectory::kDirectory_AppData
kStatus kDirectory_AppData(const kChar *appName, kChar *directory, kSize capacity)
Gets a directory suitable for an application to write data files.
kDirectory::kDirectory_ListFiles
kStatus kDirectory_ListFiles(const kChar *directory, kArrayList files)
List the files in the specified directory.
kDirectory::kDirectory_AppConfig
kStatus kDirectory_AppConfig(const kChar *appName, kChar *directory, kSize capacity)
Gets the directory from which an application should load its configuration/resource files...
kDirectory::kDirectory_Plugin
kStatus kDirectory_Plugin(kChar *directory, kSize capacity)
Gets the directory where plug-ins are located.
kArrayList
Represents a list implemented with a dynamic array.
kDirectory::kDirectory_Create
kStatus kDirectory_Create(const kChar *directory)
Creates a directory at the specified location.
kObject
Root of all Zen classes.
kStatus
Represents an error code.
kDirectory::kDirectory_Exists
kBool kDirectory_Exists(const kChar *directory)
Reports whether the specified directory exists.
kBool
Represents a boolean value.