GetFileTarHeader() public méthode

Fill in a TarHeader with information from a File.
public GetFileTarHeader ( TarHeader header, string file ) : void
header TarHeader /// The TarHeader to fill in. ///
file string /// The file from which to get the header information. ///
Résultat void
Exemple #1
0
        public static TarEntry CreateEntryFromFile(string fileName)
        {
            TarEntry tarEntry = new TarEntry();

            tarEntry.GetFileTarHeader(tarEntry.header, fileName);
            return(tarEntry);
        }
Exemple #2
0
        public static TarEntry CreateEntryFromFile(string fileName)
        {
            TarEntry entry1 = new TarEntry();

            entry1.GetFileTarHeader(entry1.header, fileName);
            return(entry1);
        }
Exemple #3
0
        /// <summary>
        /// Construct an entry for a file. File is set to file, and the
        /// header is constructed from information from the file.
        /// </summary>
        /// <param name = "fileName">
        /// The file that the entry represents.
        /// </param>
        public static TarEntry CreateEntryFromFile(string fileName)
        {
            TarEntry entry = new TarEntry();

            entry.Initialize();
            entry.GetFileTarHeader(entry.header, fileName);
            return(entry);
        }
Exemple #4
0
 /// <summary>
 /// Construct an entry for a file. File is set to file, and the
 /// header is constructed from information from the file.
 /// </summary>
 /// <param name = "fileName">The file name that the entry represents.</param>
 /// <returns>Returns the newly created <see cref="TarEntry"/></returns>
 public static TarEntry CreateEntryFromFile(string fileName)
 {
     var entry = new TarEntry();
     entry.GetFileTarHeader(entry.header, fileName);
     return entry;
 }