![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e18. Determining If a Filename Path Is a File or a DirectoryFile dir = new File("directoryName"); boolean isDir = dir.isDirectory(); if (isDir) { // dir is a directory } else { // dir is a file }
e14. Converting Between a Filename Path and a URL e15. Getting an Absolute Filename Path from a Relative Filename Path e16. Determining If Two Filename Paths Refer to the Same File e17. Getting the Parents of a Filename Path
© 2002 Addison-Wesley. |