fork download
  1. a = Dir['/media/backup/work/2014_05_15__re-encode_audio_SU-ANIMALS/original/*']
  2. b = Dir['/media/backup/work/2014_05_15__re-encode_audio_SU-ANIMALS/re-encoded/*']
  3.  
  4. a_filenames_mapping = Hash[a.map{ |x| [File.basename(x, File.extname(x)), x] }]
  5.  
  6. b_filenames_mapping = Hash[b.map{ |x| [File.basename(x, File.extname(x)), x] }]
  7.  
  8. differing_files = a_filenames_mapping.keys - b_filenames_mapping.keys
  9.  
  10. differing_filenames = differing_files.map{ |x| File.basename(a_filenames_mapping[x]) }
  11. p differing_filenames
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
a = Dir['/media/backup/work/2014_05_15__re-encode_audio_SU-ANIMALS/original/*']
^
Main.java:1: error: unclosed character literal
a = Dir['/media/backup/work/2014_05_15__re-encode_audio_SU-ANIMALS/original/*']
        ^
Main.java:1: error: illegal underscore
a = Dir['/media/backup/work/2014_05_15__re-encode_audio_SU-ANIMALS/original/*']
                                       ^
Main.java:1: error: unclosed comment
a = Dir['/media/backup/work/2014_05_15__re-encode_audio_SU-ANIMALS/original/*']
                                                                           ^
4 errors
stdout
Standard output is empty