Fixed bug (rmdir before all files read)