public void Import(Repository repository, T folder, Stream zipStream, bool @override) { GetLocker().EnterWriteLock(); try { string basePath = FolderPath.GetBaseDir <T>(repository); if (null != folder) { basePath = new FolderPath(folder).PhysicalPath; } ImportHelper.Import(basePath, zipStream, @override); } finally { GetLocker().ExitWriteLock(); } }
public IEnumerable <T> All(Repository repository) { var baseDir = FolderPath.GetBaseDir <T>(repository); return(GetFolders(repository, baseDir).AsQueryable()); }