* added File.copyAs(File)
This commit is contained in:
parent
d6f29f3fd1
commit
97263aa5d3
|
@ -46,6 +46,7 @@ File.metaClass.isDerived = { f -> isDerived(delegate, f) }
|
|||
File.metaClass.validateFileName = { validateFileName(delegate) }
|
||||
File.metaClass.validateFilePath = { validateFilePath(delegate) }
|
||||
File.metaClass.moveTo = { f -> moveRename(delegate, f as File) }
|
||||
File.metaClass.copyAs = { f -> copyAs(delegate, f) }
|
||||
File.metaClass.copyTo = { dir -> copyAs(delegate, new File(dir, delegate.getName())) }
|
||||
File.metaClass.getXattr = { new net.sourceforge.filebot.MetaAttributeView(delegate) }
|
||||
File.metaClass.relativize = { f -> delegate.canonicalFile.toPath().relativize(f.canonicalFile.toPath()).toFile() }
|
||||
|
|
Loading…
Reference in New Issue