FileStorage: error on unknown directory or if it is not directory