add listdir to local file