ArchivePart/src/work/lclpnet/archivepart/model/ArchivePartFile.java
public boolean addToArchive(File f, boolean override) {
		if(!f.exists()) {
			System.err.println("\"" + f.getAbsolutePath() + "\" does not exist.");
			return false;
		}
		if(f.isFile()) return addToArchive(f, "/" + f.getName(), override);
		else return addToArchiveRecursively(f, f, false, override);
	}
/**
	 * Adds the contents of the directory to the root of the archive.<br>
	 * <br>
	 * Example: <br>
	 * <code>f = new File("/path/to/folder");</code> would add all the contents of the folder to the root of the archive.
	 * Folders inside the specified folder will keep their structure.
	 * 
	 * If <code>f.isFile()</code> the file will be directly added to the root of the directory.
	 * 
	 * If you want to add a folder to the archive and create a folder inside the root of the archive instead of only adding the contents
	 * of the folder, use {@link ArchivePartFile#addFolderToArchive(File)}.
	 * 
	 * @param f The file that should be added to the archive. Can be a directory (recusive) or a single file.
	 * @param override True if existing entries with the same path should be replaced.
	 * @return true, if everything was added successfully.
	 */
Adds the contents of the directory to the root of the archive.

Example: 
f = new File("/path/to/folder"); would add all the contents of the folder to the root of the archive.
Folders inside the specified folder will keep their structure.

If f.isFile() the file will be directly added to the root of the directory.

If you want to add a folder to the archive and create a folder inside the root of the archive instead of only adding the contents
of the folder, use  ArchivePartFile#addFolderToArchive(File).

@param f The file that should be added to the archive. Can be a directory (recusive) or a single file.
@param override True if existing entries with the same path should be replaced.
@return true, if everything was added successfully.
Adds the contents of the directory to the root of the archive . Example : f = new File ( " / path / to / folder " ) ; would add all the contents of the folder to the root of the archive . Folders inside the specified folder will keep their structure . If f . isFile () the file will be directly added to the root of the directory . If you want to add a folder to the archive and create a folder inside the root of the archive instead of only adding the contents of the folder use ArchivePartFile#addFolderToArchive ( File ) . @param f The file that should be added to the archive . Can be a directory ( recusive ) or a single file . @param override True if existing entries with the same path should be replaced . @return true if everything was added successfully .
public boolean addToArchive(File f, boolean override) {
		if(!f.exists()) {
			System.err.println("\"" + f.getAbsolutePath() + "\" does not exist.");
			return false;
		}
		if(f.isFile()) return addToArchive(f, "/" + f.getName(), override);
		else return addToArchiveRecursively(f, f, false, override);
	}
public boolean addToArchive ( File f , boolean override ) { if ( ! f . exists ( ) ) { System . err . println ( "\"" + f . getAbsolutePath ( ) + "\" does not exist." ) ; return false ; } if ( f . isFile ( ) ) return addToArchive ( f , "/" + f . getName ( ) , override ) ; else return addToArchiveRecursively ( f , f , false , override ) ; }
Adds the contents of the directory to the root of the archive.<br>
 <br>
 Example: <br>
 <code>f = new File("/path/to/folder");</code> would add all the contents of the folder to the root of the archive.
Adds the contents of the directory to the root of the archive . <br > <br > Example : <br > <code > f = new File ( " / path / to / folder " ) ; < / code > would add all the contents of the folder to the root of the archive .