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.
path |
A path of directories |
|
mode |
The file mode |
|
error |
A location to return an error of type G_FILE_ERROR |
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.
path |
A path to a directory |
|
recursive |
|
|
error |
A location to return an error of type G_FILE_ERROR |
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()
).
tmpl |
Template for file name, as in |
|
error |
A location to return an error of type G_FILE_ERROR |
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()
).
tmpl |
Template for fifo name, basename only |
|
error |
A location to return an error of type G_FILE_ERROR |
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()
).
tmpl |
Template for directory name, basename only |
|
error |
A location to return an error of type G_FILE_ERROR |
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.
oldpath |
A path to an existing file |
|
newtmpl |
Template for link name, basename only |
|
symln |
|
|
error |
A location to return an error of type G_FILE_ERROR |
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()
).
tmpl |
Template for file name, as in |
|
name_used |
Location to store actual name used |
|
error |
A location to return an error of type G_FILE_ERROR |
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.
old_name |
The path to an existing filename |
|
new_name |
The new name of the file |
|
error |
A location to return an error of type G_FILE_ERROR |