public class MakeDirectoryLike
extends java.lang.Object
ZFile
Constructor and Description |
---|
MakeDirectoryLike() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
The main method accepts the name of the new directory
and the name of an existing directory, and then calls
makeDirectoryLike(String, String) to create the
new directory using the attributes of the existing directory. |
static void |
makeDirectoryLike(java.lang.String newDirname,
java.lang.String modelDirname)
Creates a new directory using an existing directory as a model.
|
public static void main(java.lang.String[] args)
makeDirectoryLike(String, String)
to create the
new directory using the attributes of the existing directory.args
- The first argument must be the name of the
directory to create and the second argument must be the name
of an existing directorypublic static void makeDirectoryLike(java.lang.String newDirname, java.lang.String modelDirname)
newDirname
- The name of the directory to createmodelDirname
- The name of an existing directory to use as a model