/usr/include/choreonoid-1.1/cnoid/src/Util/FileUtil.h is in libcnoid-dev 1.1.0+dfsg-6.1+b4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | /*!
@file
@author Shin'ichiro Nakaoka
*/
#ifndef CNOID_UTIL_FILE_UTIL_H_INCLUDED
#define CNOID_UTIL_FILE_UTIL_H_INCLUDED
#include <boost/filesystem.hpp>
#include <string>
#include "exportdecl.h"
namespace cnoid {
CNOID_EXPORT void makePathCompact(
const boost::filesystem::path& path,
boost::filesystem::path& out_compact);
CNOID_EXPORT bool findSubDirectory(
const boost::filesystem::path& directory,
const boost::filesystem::path& path,
boost::filesystem::path& out_subdirectory);
CNOID_EXPORT bool findRelativePath(
const boost::filesystem::path& from,
const boost::filesystem::path& to,
boost::filesystem::path& out_relativePath);
//#ifdef _WIN32
#if 0
CNOID_EXPORT const std::string toActualPathName(const std::string& pathName);
#else
inline const std::string& toActualPathName(const std::string& pathName) {
return pathName;
}
#endif
}
#endif
|