Ejemplo n.º 1
0
        /// <inheritdoc/>
        protected override void HandleDirectory(DirectoryInfo directory)
        {
            #region Sanity checks
            if (directory == null) throw new ArgumentNullException(nameof(directory));
            #endregion

            _nodes.Add(new ManifestDirectory("/" + directory.RelativeTo(SourceDirectory)));
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        protected override void HandleDirectory(DirectoryInfo directory)
        {
            #region Sanity checks
            if (directory == null) throw new ArgumentNullException(nameof(directory));
            #endregion

            _tarStream.PutNextEntry(new TarEntry(new TarHeader
            {
                Name = directory.RelativeTo(SourceDirectory),
                TypeFlag = TarHeader.LF_DIR,
                Mode = TarExtractor.DefaultMode | TarExtractor.ExecuteMode
            }));
            _tarStream.CloseEntry();
        }
Ejemplo n.º 3
0
        /// <inheritdoc/>
        protected override void HandleDirectory(DirectoryInfo directory)
        {
            #region Sanity checks
            if (directory == null) throw new ArgumentNullException(nameof(directory));
            #endregion

            _zipStream.PutNextEntry(new ZipEntry(directory.RelativeTo(SourceDirectory) + '/'));
        }