GetFileTarHeader() public method

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. ///
return void
示例#1
0
        public static TarEntry CreateEntryFromFile(string fileName)
        {
            TarEntry tarEntry = new TarEntry();

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

            entry1.GetFileTarHeader(entry1.header, fileName);
            return(entry1);
        }
示例#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);
        }
示例#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;
 }