Ejemplo n.º 1
0
bool os_link_symbolic(const std::wstring &target, const std::wstring &lname)
{
	if(!os_link_symbolic_junctions(target, lname) )
		return os_link_symbolic_symlink(target, lname);

	return true;
}
Ejemplo n.º 2
0
bool os_link_symbolic(const std::string &target, const std::string &lname, void* transaction, bool* isdir)
{
	bool l_isdir;
	if(isdir!=NULL)
	{
		l_isdir=*isdir;
	}
	else
	{
		l_isdir=isDirectory(target, NULL);
	}
	if(!l_isdir || !os_path_absolute(target) ||!os_link_symbolic_junctions(target, lname, transaction) )
		return os_link_symbolic_symlink(target, lname, transaction, isdir);

	return true;
}