public virtual string CreateDirectoryStructure(string table, Stack <string> dirsToCreate, string pathId, SqlConnection conn) { while (dirsToCreate.Count > 0) { pathId = FileTableRepo.CreateDirectory(table, dirsToCreate.Pop(), pathId, conn); } return(pathId); }
public virtual SqlHierarchyId CreateDirectoryStructure(string table, Stack <string> dirsToCreate, SqlHierarchyId pathId, SqlConnection conn, bool pipeToOutput) { while (dirsToCreate.Count > 0) { var dir = dirsToCreate.Pop(); pathId = FileTableRepo.CreateDirectory(table, dir, pathId, conn, pipeToOutput); } return(pathId); }