celestia/src/celutil/fsutils.h

31 lines
881 B
C++

// fsutils.h
//
// Copyright (C) 2001-present, the Celestia Development Team
// Original version by Chris Laurel <claurel@shatters.net>
//
// Miscellaneous useful filesystem-related functions.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
#pragma once
#include <celutil/array_view.h>
#include <celcompat/filesystem.h>
namespace celestia::util
{
fs::path LocaleFilename(const fs::path& filename);
fs::path PathExp(const fs::path& filename);
fs::path ResolveWildcard(const fs::path& wildcard,
array_view<const char*> extensions);
#ifndef PORTABLE_BUILD
fs::path HomeDir();
fs::path WriteableDataPath();
#endif
} // end namespace celestia::util