YSRESULT YsSpecialPath::GetUserAppDataDir(YsString &path)
{
	char buf[bufSize];
	if(true==YsSpecialPath_GetUserDir(bufSize,buf))
	{
		path.MakeFullPathName(buf,"Library/Application Support");
		return YSOK;
	}
	return YSERR;
}
YSRESULT YsSpecialPath::GetUserDocDir(YsString &path)
{
	char buf[bufSize];
	if(true==YsSpecialPath_GetUserDir(bufSize,buf))
	{
		path.MakeFullPathName(buf,"Documents");
		return YSOK;
	}
	return YSERR;
}
YSRESULT YsSpecialPath::GetUserAppDataDir(YsString &path)
{
	const char *homeDir=getenv("HOME");
	if(NULL!=homeDir)
	{
		path.MakeFullPathName(homeDir,"ApplicationData");
		mkdir(path,493); // 0755
		return YSOK;
	}
	return YSERR;
}
YSRESULT YsSpecialPath::GetUserDocDir(YsString &path)
{
	const char *homeDir=getenv("HOME");
	if(NULL!=homeDir)
	{
		path.MakeFullPathName(homeDir,"Documents");
		mkdir(path,493); // 0755
		return YSOK;
	}
	return YSERR;
}