[PD] more features for [file] (Get directory of current patch)