public GetFileTarHeader ( |
||
header | /// The TarHeader to fill in. /// | |
file | string | /// The file from which to get the header information. /// |
return | void |
public static TarEntry CreateEntryFromFile(string fileName) { TarEntry tarEntry = new TarEntry(); tarEntry.GetFileTarHeader(tarEntry.header, fileName); return(tarEntry); }
public static TarEntry CreateEntryFromFile(string fileName) { TarEntry entry1 = new TarEntry(); entry1.GetFileTarHeader(entry1.header, fileName); return(entry1); }
/// <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); }
/// <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; }