Change ap, aP to select path without basename.