Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkenneth@hexad.dk <kenneth@hexad.dk@59da171f-624f-0410-aa54-27559c288bec>2012-08-07 21:42:09 +0400
committerkenneth@hexad.dk <kenneth@hexad.dk@59da171f-624f-0410-aa54-27559c288bec>2012-08-07 21:42:09 +0400
commit65c320c22db447be1029cca9c7454b72d2680d4e (patch)
tree776644f9811ac831e4fe81cada0540ce526b2e75 /Duplicati/Library/Interface
parent5d0df10c9eed5d26e32eefffed18de7f00df8161 (diff)
Rewrite of the way the compression modules are used.
The number of methods required by the ICompression interface is now reduce and all handling of path conversion and text encoding is now done in the CompressionWrapper class. This should make it easier to implement a new compression module, and reduce the number of errors that occur because of filename/encoding issues. This commit also contains a fix for reporting a sane error message if the compression module is not found/loaded. git-svn-id: https://duplicati.googlecode.com/svn/trunk@1417 59da171f-624f-0410-aa54-27559c288bec
Diffstat (limited to 'Duplicati/Library/Interface')
-rw-r--r--Duplicati/Library/Interface/ICompression.cs57
1 files changed, 1 insertions, 56 deletions
diff --git a/Duplicati/Library/Interface/ICompression.cs b/Duplicati/Library/Interface/ICompression.cs
index 8e476c8f2..3f35f8c76 100644
--- a/Duplicati/Library/Interface/ICompression.cs
+++ b/Duplicati/Library/Interface/ICompression.cs
@@ -42,28 +42,7 @@ namespace Duplicati.Library.Interface
/// <param name="prefix">An optional prefix for limiting the files returned</param>
/// <returns>All files in the archive, matching the prefix, if any</returns>
string[] ListFiles(string prefix);
-
- /// <summary>
- /// Returns all files and directories in the archive, matching the prefix, if any.
- /// </summary>
- /// <param name="prefix">An optional prefix for limiting the files and directories returned</param>
- /// <returns>All files and directories in the archive, matching the prefix, if any</returns>
- string[] ListEntries(string prefix);
-
- /// <summary>
- /// Returns all the bytes from a given file
- /// </summary>
- /// <param name="file">The file to read data from</param>
- /// <returns>All bytes from the given file</returns>
- byte[] ReadAllBytes(string file);
-
- /// <summary>
- /// Returns all lines in the given file
- /// </summary>
- /// <param name="file">The file to read the data from</param>
- /// <returns>All lines in the given file</returns>
- string[] ReadAllLines(string file);
-
+
/// <summary>
/// Returns a stream with data from the given file
/// </summary>
@@ -72,40 +51,6 @@ namespace Duplicati.Library.Interface
System.IO.Stream OpenRead(string file);
/// <summary>
- /// Returns a stream with data from the given file
- /// </summary>
- /// <param name="file">The file to write the data to</param>
- /// <returns>A stream with data from the given file</returns>
- System.IO.Stream OpenWrite(string file);
-
- /// <summary>
- /// Writes data to a file
- /// </summary>
- /// <param name="file">The file to write to</param>
- /// <param name="data">The data to write</param>
- void WriteAllBytes(string file, byte[] data);
-
- /// <summary>
- /// Writes the given lines to the files
- /// </summary>
- /// <param name="file">The file to write to</param>
- /// <param name="data">The data to write</param>
- void WriteAllLines(string file, string[] data);
-
- /// <summary>
- /// Removes a file from the archive
- /// </summary>
- /// <param name="file">The file to remove</param>
- void DeleteFile(string file);
-
- /// <summary>
- /// Creates a file in the archive
- /// </summary>
- /// <param name="file">The file to create</param>
- /// <returns>A stream with the data to write into the file</returns>
- System.IO.Stream CreateFile(string file);
-
- /// <summary>
/// Creates a file in the archive
/// </summary>
/// <param name="file">The file to create</param>