You haven't retained this filename[0] === '.' case. The names won't always begin with /sdcard.  (When running on the desktop, for example).  So you still have to handle the case of relative pathnames like ".Trashes/foo.mp3".