Method getParentFile()
Return type: java.io.File
Member of: java.io.File
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 File parent = file.getParentFile();
2 File destinationFile = new File(sourceFile.getParentFile(), newName);
3 return getParentFile().exists();
4 return temp.getParentFile().getPath();
5 return "CVS "+getJavaCVSWork().getAbsolutePath()+"|"+MODULE+"|"+getTestFile().getParentFile().getName();
6 _directoryName = file.getParentFile().getName();
7 model.setRoot(file.getParentFile());
8 FileUtil.forceDelete( m_testDirectory.getParentFile() );
9 table.getParentFile().mkdirs();
10 file = file.getParentFile();
11 File backup = new File(file.getParentFile(), file.getName() + ".backup");
12 dir = dir.getParentFile();
13 i++, trav = trav.getParentFile()) {
14 File parentDir = mDirectoryTableModel.getDirectory().getParentFile();
15 _prefsFile.getParentFile().mkdirs();
16 if (!fnf.accept(f.getParentFile(), f.getName())) {
17 File parent = node.getParentFile();
18 File file = new File(url.getFile()).getParentFile();
19 installationDir = file.getCanonicalFile().getParentFile().
20 parser.setEntityResolver(new GZEntityResolver(skelFile.getParentFile(), encoding));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.