handle FilePath flags in FilePathEditor