directory and file ok