💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# G.7 Present The `<present>` tag selects files that have an equivalent file in another directory tree. The `<present>` tag supports the use of a contained [mapper](apf.html "Appendix F. Core mappers") element to define the location of the file to be compared against. If no `mapper` element is specified, the identity type mapper is used. The `<present>` tag is case-sensitive. ``` <fileset dir="phing-2.4.6/classes" includes="**/*.php"> <present present="srconly" targetdir="phing-2.4.5/classes"> </fileset> ``` Table G.7:聽 Attributes for the `<present>` selector NameDescriptionDefaultRequired`targetdir`The base directory to look for the files to compare against. The precise location depends on a combination of this attribute and the `<mapper>` element, if any.n/aYes`present`Whether we are requiring that a file is present in the src directory tree only, or in both the src and the target directory tree. Valid values are: `srconly` - select files only if they are in the src directory tree but not in the target directory tree `both` - select files only if they are present both in the src and target directory treesbothNo