Local JavaObject &fromFile = CreateJavaObject("java.io.File", &strFromPath);
Local JavaObject &toFile = CreateJavaObject("java.io.File", &strToPath);
&fromFile.renameTo(&toFile);
Move a File Using PeopleCode
Posted by
Michael Nitschke
on Wednesday, 17 April 2013
There's no generic function to move files in the PeopleCode universe, only to open them. Here's an elegant solution using the Java io package.
0 comments:
Post a Comment