Alexandria.Engines.Unreal.State.AddPackagePath C# (CSharp) Method

AddPackagePath() public method

Add a path to the collection, if it exists. Returns whether the directory exists and was added.
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;
        }