Alquimiaware.NuGetUnity.FileSystemPackageProvider.GetAll C# (CSharp) Method

GetAll() public method

public GetAll ( string packagesFolderPath ) : List
packagesFolderPath string
return List
        public List<Package> GetAll(string packagesFolderPath)
        {
            if (!this.IsPackageSource(packagesFolderPath))
                throw new ArgumentOutOfRangeException("packagesFolderPath");

            var folders = Directory.GetDirectories(packagesFolderPath)
                                   .Select(path => new DirectoryInfo(path));

            return folders.Select(di => new Package(
                                 di.Name,
                                 di.FullName,
                                 GetTargetLibs(di)))
                          .ToList();
        }