return from isReadOnlyFile