fixing listDirectory error
fixing build error