| Top |
| void | ogmrip_fs_unref () |
| const gchar * | ogmrip_fs_get_tmp_dir () |
| void | ogmrip_fs_set_tmp_dir () |
| gboolean | ogmrip_fs_mkdir () |
| gboolean | ogmrip_fs_rmdir () |
| gchar * | ogmrip_fs_mktemp () |
| gchar * | ogmrip_fs_mkftemp () |
| gchar * | ogmrip_fs_mkdtemp () |
| gchar * | ogmrip_fs_lntemp () |
| gint | ogmrip_fs_open_tmp () |
| gchar * | ogmrip_fs_get_full_path () |
| gint64 | ogmrip_fs_get_left_space () |
| gchar * | ogmrip_fs_get_mount_point () |
| const gchar * | ogmrip_fs_get_extension () |
| gchar * | ogmrip_fs_set_extension () |
| gboolean | ogmrip_fs_rename () |
void ogmrip_fs_unref (gchar *filename,gboolean do_unlink);
If do_unlink
is TRUE, recursively removes filename
then frees the memory
pointed to by filename
.
const gchar *
ogmrip_fs_get_tmp_dir (void);
Returns OGMRip's temporary directory.
void
ogmrip_fs_set_tmp_dir (const gchar *dir);
Sets OGMRip's temporary directory. If dir
is NULL, OGMRip's temporary
directory will be the system's temporary directory.
gboolean ogmrip_fs_mkdir (const gchar *path,mode_t mode,GError **error);
Create the all the directories in path
, if they do not already exist.
gboolean ogmrip_fs_rmdir (const gchar *path,gboolean recursive,GError **error);
If recusive
is FALSE, removes the directory of path
if it is empty. If
recusive
is TRUE, also removes its content recursively.
gchar * ogmrip_fs_mktemp (const gchar *tmpl,GError **error);
Creates a file in OGMRip's temporary directory (as returned by
ogmrip_fs_get_tmp_dir()).
gchar * ogmrip_fs_mkftemp (const gchar *tmpl,GError **error);
Creates a fifo in OGMRip's temporary directory (as returned by
ogmrip_fs_get_tmp_dir()).
gchar * ogmrip_fs_mkdtemp (const gchar *tmpl,GError **error);
Creates a directory in OGMRip's temporary directory (as returned by
ogmrip_fs_get_tmp_dir()).
gchar * ogmrip_fs_lntemp (const gchar *oldpath,const gchar *newtmpl,gboolean symln,GError **error);
Creates a link in OGMRip's temporary directory (as * returned by
ogmrip_fs_get_tmp_dir()) to æn existing file.
gint ogmrip_fs_open_tmp (const gchar *tmpl,gchar **name_used,GError **error);
Opens a file for writing in OGMRip's temporary directory (as returned by
g_get_tmp_dir()).
gchar *
ogmrip_fs_get_full_path (const gchar *filename);
Return the full absolute path of filename
.
gint64 ogmrip_fs_get_left_space (const gchar *filename,GError **error);
Returns the space left in bytes on the device containing filename
.
gchar * ogmrip_fs_get_mount_point (const gchar *filename,GError **error);
Returns the mount point of the device containing filename
.
const gchar *
ogmrip_fs_get_extension (const gchar *filename);
Returns the extension of filename
.
gchar * ogmrip_fs_set_extension (const gchar *filename,const gchar *extension);
If filename
already has an extension, replaces it with extension
. If not,
appends extension
to filename
.
gboolean ogmrip_fs_rename (const gchar *old_name,const gchar *new_name,GError **error);
If recusive
is FALSE, removes the directory of path
if it is empty. If
recusive
is TRUE, also removes its content recursively.