code: func getOutstandingUploads(ctx context.Context, driver storageDriver.StorageDriver) (map[string]uploadData, []error) {
  	var errors []error
  	uploads := make(map[string]uploadData)
  
  	inUploadDir := false
  	root, err := pathFor(repositoriesRootPathSpec{})
  	if err != nil {
  		return uploads, append(errors, err)
  	}
  
  	err = driver.Walk(ctx, root, func(fileInfo storageDriver.FileInfo) error {
  		filePath := fileInfo.Path()
  		_, file := path.Split(filePath)
  		if file[0] == '_' {
  			// Reserved directory
  			inUploadDir = (file == "_uploads")
  
  			if fileInfo.IsDir() && !inUploadDir {
  				return storageDriver.ErrSkipDir
  			}
  
  		}
  
  		uuid, isContainingDir := uuidFromPath(filePath)
  		if uuid == "" {
  			// Cannot reliably delete
  			return nil
  		}
  		ud, ok := uploads[uuid]
  		if !ok {
  			ud = newUploadData()
  		}
  		if isContainingDir {
  			ud.containingDir = filePath
  		}
  		if file == "startedat" {
  			if t, err := readStartedAtFile(driver, filePath); err == nil {
  				ud.startedAt = t
  			} else {
  				errors = pushError(errors, filePath, err)
  			}
  
  		}
  
  		uploads[uuid] = ud
  		return nil
  	})
  
  	if err != nil {
  		errors = pushError(errors, root, err)
  	}
  	return uploads, errors
  }
docs: // getOutstandingUploads walks the upload directory, collecting files
  // which could be eligible for deletion.  The only reliable way to
  // classify the age of a file is with the date stored in the startedAt
  // file, so gather files by UUID with a date from startedAt.