Top Level Namespace

Defined in:

Method Summary

Method Detail

def crawl(dirpath, batch_size = 8000, &) #

Non-recursive file system Walk Yields list of files once the batch is full

TODO Implement depth first so that stime can be updated after completing one directory.

TODO Batch size will not apply to hardlinks.

crawl("/bricks/gvol1/brick1/brick", 8000) do |batch|
  # sync files
  puts batch.files

  # sync hardlinks
  if batch.hardlinks.size > 0
    puts batch.hardlinks
  end
end

[View source]