login about faq

Hey!

I use method appendFiles, but I have only files in zip archive. I want to see directory in archive.

i.e.

I have files in directory_name:

-directory_name
--123.txt
--321.txt

appendFiles("directory_name", true);

I want to get in archive:

-directory_name
--123.txt
--321.txt

but I only get files:

--123.txt
--321.txt

Please, help. :) Sorry for my bad english.

Thanks

asked Nov 28 '16 at 10:59

Zermond's gravatar image

Zermond
11

edited Nov 29 '16 at 03:39


Use the zip.PathPrefix property:

Android: How to Add a Directory Path to Files when Zipping

Classic ASP: How to Add a Directory Path to Files when Zipping

C: How to Add a Directory Path to Files when Zipping

C++: How to Add a Directory Path to Files when Zipping

C#: How to Add a Directory Path to Files when Zipping

C# UWP/WinRT: How to Add a Directory Path to Files when Zipping

DataFlex: How to Add a Directory Path to Files when Zipping

Delphi ActiveX: How to Add a Directory Path to Files when Zipping

Delphi DLL: How to Add a Directory Path to Files when Zipping

.NET Core C#: How to Add a Directory Path to Files when Zipping

Excel: How to Add a Directory Path to Files when Zipping

Visual FoxPro: How to Add a Directory Path to Files when Zipping

Java: How to Add a Directory Path to Files when Zipping

Lianja: How to Add a Directory Path to Files when Zipping

MFC: How to Add a Directory Path to Files when Zipping

Mono C#: How to Add a Directory Path to Files when Zipping

Node.js: How to Add a Directory Path to Files when Zipping

Objective-C: How to Add a Directory Path to Files when Zipping

Perl: How to Add a Directory Path to Files when Zipping

PHP ActiveX: How to Add a Directory Path to Files when Zipping

PHP Extension: How to Add a Directory Path to Files when Zipping

PowerBuilder: How to Add a Directory Path to Files when Zipping

PowerShell: How to Add a Directory Path to Files when Zipping

PureBasic: How to Add a Directory Path to Files when Zipping

Python: How to Add a Directory Path to Files when Zipping

Ruby: How to Add a Directory Path to Files when Zipping

SQL Server: How to Add a Directory Path to Files when Zipping

Swift: How to Add a Directory Path to Files when Zipping

Tcl: How to Add a Directory Path to Files when Zipping

Unicode C: How to Add a Directory Path to Files when Zipping

Unicode C++: How to Add a Directory Path to Files when Zipping

Visual Basic 6.0: How to Add a Directory Path to Files when Zipping

VB.NET: How to Add a Directory Path to Files when Zipping

VB.NET UWP/WinRT: How to Add a Directory Path to Files when Zipping

VBScript: How to Add a Directory Path to Files when Zipping

Xojo Plugin: How to Add a Directory Path to Files when Zipping

link

answered Dec 03 '16 at 16:07

chilkat's gravatar image

chilkat ♦♦
12.4k316361453

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×23

Asked: Nov 28 '16 at 10:59

Seen: 363 times

Last updated: Dec 03 '16 at 16:07

powered by OSQA