I think this won't work ok for filenames with spaces?