Exemplo n.º 1
0
        public string LastUpdatedFiles(Data.Repository data)
        {
            string result = string.Empty;
            var    path   = _storage.Combine(data.Id);

            result = _scriptExecutor.ExecuteCommon("LastUpdatedFiles", path);

            return(result);
        }
Exemplo n.º 2
0
        public Container GetContainer(Repository repository)
        {
            Container result = null;

            var    provider = _providerFactory.GetProvider(repository.Provider);
            string path     = string.Empty;

            if (!provider.Exist(repository))
            {
                path = provider.Clone(repository);
            }
            else
            {
                path = _storage.Combine(repository.Id);
            }

            result = new Container($"Container #{repository.Id}", path, repository)
            {
                UpdatedTime = repository.UpdatedTime
            };

            return(result);
        }