Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
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;
 }