Copying files to new directory in SBT

旧时模样 提交于 2019-12-24 08:35:32

问题


How do I copy files contained within a PathFinder to a new directory?


回答1:


Answered on the sbt mailing list:

def copy(finder: PathFinder, dst: File) = {
  IO.copy(finder.get map {f => (f, dst / f.getName)})
}


来源:https://stackoverflow.com/questions/9713483/copying-files-to-new-directory-in-sbt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!