diff options
author | Justin Clarke Casey | 2008-05-30 15:18:40 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-05-30 15:18:40 +0000 |
commit | f26eeab3d4e3dd5f20d888479e70c984d9f11777 (patch) | |
tree | 1d4daf33c9412b844b681809b123e8c2a87355e1 /OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs | |
parent | while investigating why IRCBridgeModule.Close() was having no effect, i (diff) | |
download | opensim-SC_OLD-f26eeab3d4e3dd5f20d888479e70c984d9f11777.zip opensim-SC_OLD-f26eeab3d4e3dd5f20d888479e70c984d9f11777.tar.gz opensim-SC_OLD-f26eeab3d4e3dd5f20d888479e70c984d9f11777.tar.bz2 opensim-SC_OLD-f26eeab3d4e3dd5f20d888479e70c984d9f11777.tar.xz |
* Read all files from tar archive
* No reload functionality implemented yet
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs index c3f8d2b..268b9b5 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs | |||
@@ -56,9 +56,13 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
56 | // Just test for now by reading first file | 56 | // Just test for now by reading first file |
57 | string filePath = "ERROR"; | 57 | string filePath = "ERROR"; |
58 | 58 | ||
59 | byte[] data = archive.Read(out filePath); | 59 | byte[] data; |
60 | while ((data = archive.ReadEntry(out filePath)) != null) | ||
61 | { | ||
62 | m_log.DebugFormat("[ARCHIVER]: Successfully read {0} ({1} bytes) from archive {2}", filePath, data.Length, m_loadPath); | ||
63 | } | ||
60 | 64 | ||
61 | m_log.DebugFormat("[ARCHIVER]: Successfully read {0} ({1} bytes) from archive {2}", filePath, data.Length, m_loadPath); | 65 | m_log.DebugFormat("[ARCHIVER]: Reached end of archive"); |
62 | 66 | ||
63 | archive.Close(); | 67 | archive.Close(); |
64 | } | 68 | } |