* add mu_maildir_clear_links to remove symlinks from a maildir

This commit is contained in:
Dirk-Jan C. Binnema
2010-01-03 13:40:40 +02:00
parent e0de3a97e4
commit 340dd1f94e
2 changed files with 77 additions and 4 deletions

View File

@ -37,7 +37,7 @@
*
* @return TRUE if creation succeeded, FALSE otherwise
*/
gboolean mu_maildir_mkmdir (const char* path, int mode, gboolean noindex);
gboolean mu_maildir_mkmdir (const char* path, mode_t mode, gboolean noindex);
/**
@ -97,4 +97,14 @@ typedef MuResult (*MuMaildirWalkDirCallback)
MuResult mu_maildir_walk (const char *path, MuMaildirWalkMsgCallback cb_msg,
MuMaildirWalkDirCallback cb_dir, void *data);
/**
* recursively delete all the symbolic links in a directory tree
*
* @param dir top dir
*
* @return TRUE if it worked, FALSE in case of error
*/
gboolean mu_maildir_clear_links (const gchar* dir);
#endif /*__MU_MAILDIR_H__*/