inline void
fgRename(const FgString & from,const FgString & to)
{return boost::filesystem::rename(from.ns(),to.ns()); }
// Recursive descent remove:
inline size_t
fgRemoveAll(const FgString & fname)
{return size_t(boost::filesystem::remove_all(fname.ns())); }
inline bool
fgRemove(const FgString & fname)
{return boost::filesystem::remove(fname.ns()); }
inline bool
fgExists(const FgString & fname)
{return boost::filesystem::exists(fname.ns()); }
// Works for both files and directories:
inline
std::time_t
fgLastWriteTime(const FgString & path)
{return boost::filesystem::last_write_time(path.ns()); }
// is_directory doesn't throw:
inline bool
fgIsDirectory(const FgString & name)
{return boost::filesystem::is_directory(name.ns()); }