fix bug: manage_file dir_mode does not work
Merge pull request #10760 from tallmad/develop

fix bug of "manage_file dir_mode does not work"