test for file directory