Copy To A Directory
def dir = fs.createDir("my-dir") fs.copy("data/message.txt", dir) def dir = fs.tempDir("fs-copy") fs.copy("data/message.txt", dir)
def dir = fs.createDir("my-dir") fs.copy("data/message.txt", dir) def dir = fs.tempDir("fs-copy") fs.copy("data/message.txt", dir)
fs.copy("data/message.txt", "data/new-message.txt")