def update_local_sync_files
      FileUtils.mkdir_p File.join(LOCAL_SYNC_PATH, 'dir_a/dir_d')
      %w{ dir_a/one.file
          dir_b/one.new
          dir_a/dir_d/two.new }.each do |path|
        File.open(File.join(LOCAL_SYNC_PATH, path), 'w') do |file|
          file.puts 'foobar'
        end
      end
      FileUtils.rm File.join(LOCAL_SYNC_PATH, 'dir_b/two.file')
    end
def update_local_sync_files
      FileUtils.mkdir_p File.join(LOCAL_SYNC_PATH, 'dir_a/dir_d')
      %w{ dir_a/one.file
          dir_b/one.new
          dir_a/dir_d/two.new }.each do |path|
        File.open(File.join(LOCAL_SYNC_PATH, path), 'w') do |file|
          file.puts 'foobar'
        end
      end
      FileUtils.rm File.join(LOCAL_SYNC_PATH, 'dir_b/two.file')
    end
Added/Updated Files are MD5: 14758f1afd44c09b7992073ccf00b43d

 ├── dir_a
 │   ├── dir_d           (add)
 │   │   └── two.new     (add)
 │   └── one.file        (update)
 └── dir_b
     ├── dir_c
     │   └── three.file
     ├── bad\377file
     ├── one.new         (add)
     └── two.file        (remove)