public void addFile ( final String path , final File source , final int mode , final int dirmode , final Directive directive , final String uname , final String gname , final boolean addParents ) throws NoSuchAlgorithmException , IOException { contents . addFile ( path , source , mode , directive , uname , gname , dirmode , addParents ) ; }
Add the specified file to the repository payload in order . The required header entries will automatically be generated to record the directory names and file names as well as their digests .