#ifndef FSUTILS_H
#define FSUTILS_H

#include "Core.h"

/* Various filesystem-related stuff */

/* Returns a dynamically-allocated string containing the canonicalised
   path of the input filename;
   report controls whether to report errors
 */
char *fsutils_canonicalise_path(const char *, BOOL report);

/* OK, not FS-related, but useful place to have it */
char *fsutils_strdup(const char *);

/* Makes directory, creating parents recursively if necessary */
BOOL fsutils_mkdir(const char *name);

/* Copies files with the equivalent of *Copy flags ~CFNR~V */
BOOL fsutils_copy(const char *source, const char *dest);

/* Deletes a directory or file */
BOOL fsutils_wipe(const char *file);

/* Sets working directory */
os_error *fsutils_set_dir(const char *);

#endif /* FSUTILS_H */
