update listdir to include full path option