Ejemplo n.º 1
0
        /// <summary>
        /// Add a path to the collection, if it exists. Returns whether the directory exists and was added.
        /// </summary>
        /// <param name="fullPath"></param>
        public bool AddPackagePath(string fullPath)
        {
            var directoryName = Path.GetDirectoryName(fullPath);

            if (!FileManager.Exists(directoryName))
            {
                return(false);
            }
            fullPath = fullPath.Replace("\\", "/");
            PackagePaths.Add(fullPath);
            return(true);
        }