#include <stdint.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | ipod_file_transfer_func )(uint64_t transferred, uint64_t total, void *userData) |
Callback used during file transfers. | |
Functions | |
int | ipod_directory_exists (const char *path) |
Test for the existence of a directory. | |
int | ipod_file_exists (const char *path) |
Test for the existence of a file. | |
void | ipod_delete_file (const char *path) |
Delete a file. | |
int | ipod_copy_file (const char *srcFile, const char *dstFile, ipod_file_transfer_func callback, void *userData) |
Copy a file from one location to another. | |
const char * | ipod_extension_of (const char *path, const char *def) |
Returns a pointer to the extension of the file, including the dot. | |
const char * | ipod_file_name_of (const char *path) |
Locate the filename in a full file path. |
|
Callback used during file transfers.
|
|
Copy a file from one location to another.
|
|
Delete a file.
|
|
Test for the existence of a directory.
|
|
Returns a pointer to the extension of the file, including the dot.
printf(ipod_extension_of("/home/jayne/hero_of_canton.mp3",".wav")); -> ".mp3" |
|
Test for the existence of a file.
|
|
Locate the filename in a full file path.
printf(ipod_file_name_of("/home/jayne/hero_of_canton.mp3")); -> "hero_of_canton.mp3" |