Prevent overwriting files with rename
Prevent exception when displaying empty folder
Refactoring: extract date formatting to DateUtils