Ejemplo n.º 1
0
static String getResourceFullPath(const ResourcePtr& res)
{
	const String& path = res->getPath();

	const String& fullPath = PathGetCurrentDir()
		+ PathGetSeparator()
		+ path;

	return fullPath;
}
Ejemplo n.º 2
0
static bool isUnderVersionControl(const ResourcePtr& res)
{
#if 0
	Stream* stream = StreamCreateFromFile( AllocatorGetHeap(), res->getPath() );
	/*, StreamMode::Read );*/

	const String& fullPath = PathGetCurrentDir()
		+ PathGetSeparator()
		+ PathGetBase( FileGetFullPath(&file) )
		+ PathGetSeparator()
		+ ".svn";

	FileClose(&file);

	return wxFileName::DirExists(fullPath);
#endif

	return false;
}