Setting up the permission on public and private file dirs at the very end