directoryutil for uploaded file's root and parent folders