public class DirSynch
extends java.lang.Object
| Constructor | Description |
|---|---|
DirSynch() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
mkdirFile(java.io.File file) |
Make all the directories up to the file name as needed...
|
void |
mkdirPath(java.io.File path) |
Make all the directories as needed...
|
java.util.LinkedList<java.lang.String> |
readTree(java.io.File path) |
Read in a LinkedList all the paths & files in a directory tree starting
at the path given.
|
void |
setCreateDirectories(boolean createDirs) |
This instructs subsequent synch operations to create empty subdirectories
if needed.
|
void |
setOneWaySynch(boolean oneWay) |
This instructs subsequent operations to synchronize one way or both ways.
|
java.io.File |
simplifyPath(java.io.File path) |
Simplify a path if valid and removing any extraneous characters...
|
void |
synch(java.io.File src,
java.io.File des) |
Synchronize files from source to destination...
|
void |
synch(java.io.File src,
java.io.File des,
boolean oneWay) |
Synchronize files from source to destination and if oneWay is false, it will
be a two way synchronization...
|
void |
synch(java.lang.String src,
java.lang.String des) |
Synchronize files from source to destination...
|
void |
synch(java.lang.String src,
java.lang.String des,
boolean oneWay) |
Synchronize files from source to destination and if oneWay is false, it will
be a two way synchronization...
|
public void mkdirFile(java.io.File file)
throws java.io.IOException
file - java.io.IOExceptionpublic void mkdirPath(java.io.File path)
throws java.io.IOException
path - java.io.IOExceptionpublic java.util.LinkedList<java.lang.String> readTree(java.io.File path)
throws java.io.IOException
path - java.io.IOExceptionpublic java.io.File simplifyPath(java.io.File path)
throws java.io.IOException
path - java.io.IOExceptionpublic void synch(java.lang.String src,
java.lang.String des)
throws java.io.IOException
src - des - java.io.IOExceptionpublic void synch(java.lang.String src,
java.lang.String des,
boolean oneWay)
throws java.io.IOException
src - des - oneWay - java.io.IOExceptionpublic void synch(java.io.File src,
java.io.File des)
throws java.io.IOException
src - des - java.io.IOExceptionpublic void synch(java.io.File src,
java.io.File des,
boolean oneWay)
throws java.io.IOException
src - des - oneWay - java.io.IOExceptionpublic void setCreateDirectories(boolean createDirs)
createDirs - public void setOneWaySynch(boolean oneWay)
oneWay -