|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.journal.helpers.FileMovingUtil
public class FileMovingUtil
Title: FileMovingUtil.java
Description: Provides a workaround to the fact that
java.io.File.renameTo(java.io.File) doesn't work across NFS file
systems.
This code is taken from a workaround provided on the Sun Developer Network Bug Database (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4073756), by mailto:morgan.sziraki@cartesian.co.uk
| Method Summary | |
|---|---|
static boolean |
move(java.io.File fromFile,
java.io.File toFile)
Move a File The renameTo method does not allow action across NFS mounted filesystems. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final boolean move(java.io.File fromFile,
java.io.File toFile)
fromFile - The existing FiletoFile - The new File
true if and only if the renaming succeeded;
false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||