Skip to content

Commit 6665494

Browse files
author
Fatih BAKIR
committed
I guess that did it
1 parent 4ee80d0 commit 6665494

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed

Source/UnityPack/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,14 @@ private static void CreateTarGZ(string tgzFilename, string sourceDirectory)
142142
private static void AddDirectoryFilesToTar(TarArchive tarArchive, string sourceDirectory, bool recurse)
143143
{
144144
TarEntry tarEntry = TarEntry.CreateEntryFromFile(sourceDirectory);
145+
tarEntry.Name = sourceDirectory.Remove(0, tarArchive.RootPath.Length + 1);
145146
tarArchive.WriteEntry(tarEntry, false);
146147

147148
string[] filenames = Directory.GetFiles(sourceDirectory);
148149
foreach (string filename in filenames)
149150
{
150151
tarEntry = TarEntry.CreateEntryFromFile(filename);
151152
tarEntry.Name = filename.Remove(0, tarArchive.RootPath.Length + 1);
152-
Console.WriteLine(tarEntry.Name);
153153
tarArchive.WriteEntry(tarEntry, true);
154154
}
155155

88.4 KB
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)