Avoid relist directory when a file is clicked