public AddPackagePath ( string fullPath ) : bool | ||
fullPath | string | |
return | bool |
public bool AddPackagePath(string fullPath)
{
var directoryName = Path.GetDirectoryName(fullPath);
if (!FileManager.Exists(directoryName))
return false;
fullPath = fullPath.Replace("\\", "/");
PackagePaths.Add(fullPath);
return true;
}