Added capacity to choose files or directories