Jim LaGrone <[email protected]> wrote on 07/23/2009 12:13:17 PM:
> I see FileSystem class buried in the eclipse/.../io directory. Is
> there any word on when this functionality might be available? Or is it
> and I just can figure it out?
Hi, Jim,
There is an x10.io.FileSystem class, but all of the functionality in it
is unimplemented at the moment. Here's the API:
public abstract class FileSystem {
const SEPARATOR_CHAR: Char = '/';
const SEPARATOR: String = "/";
const PATH_SEPARATOR_CHAR: Char = ':';
const PATH_SEPARATOR: String = ":";
incomplete def delete(File) : Void throws IOException;
incomplete def deleteOnExit(File) : Void throws IOException;
incomplete def rename(f: File, t: File) : Void throws IOException;
incomplete def mkdir(File) : Void throws IOException;
incomplete def mkdirs(File) : Void throws IOException;
incomplete def exists(File) : Boolean;
incomplete def size(File) : Long throws IOException;
incomplete def listFiles(File): ValRail[File] throws IOException;
incomplete def listFiles(File, (File) => Boolean): ValRail[File]
throws IOException;
}
If you really need this functionality, please open a JIRA, and we'll
work on implementing it for the subsequent releases. It is unlikely,
however, that any major new functionality will be implemented in the
1.7 tree, so you'd probably have to wait for a 2.0 release.
Igor
--
Igor Peshansky (note the spelling change!)
IBM T.J. Watson Research Center
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
X10: Parallel Productivity and Performance (http://x10.sf.net/)
------------------------------------------------------------------------------
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users