ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# F.6 FlattenMapper The `FlattenMapper` removes the directories from a filename and solely returns the filename. ``` <copy todir="/tmp"> <mapper type="flatten" /> <fileset refid="someid" /> </copy> ``` This code will copy all files in the fileset to /tmp. All files will be in the target directory. F.6.1 Examples `<mapper type="flatten" />`Applying the mapper, you will get the following results from the following filenames: Table F.6:聽Result of mapping FromTo`test.txt``test.txt``./foo/bar/test.bak``test.bak`