Dynamic select file/directory