mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[SplitJoinStream] Allow to set FileAccess mode when adding a file.
This commit is contained in:
@@ -229,7 +229,8 @@ namespace Aaru.Filters
|
|||||||
/// <param name="basePath">Base file path, directory path only</param>
|
/// <param name="basePath">Base file path, directory path only</param>
|
||||||
/// <param name="counterFormat">Counter format, includes filename and a formatting string</param>
|
/// <param name="counterFormat">Counter format, includes filename and a formatting string</param>
|
||||||
/// <param name="counterStart">Counter start, defaults to 0</param>
|
/// <param name="counterStart">Counter start, defaults to 0</param>
|
||||||
public void AddRange(string basePath, string counterFormat = "{0:D3}", int counterStart = 0)
|
public void AddRange(string basePath, string counterFormat = "{0:D3}", int counterStart = 0,
|
||||||
|
FileAccess access = FileAccess.Read)
|
||||||
{
|
{
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
@@ -238,7 +239,7 @@ namespace Aaru.Filters
|
|||||||
if(!File.Exists(filePath))
|
if(!File.Exists(filePath))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
Add(filePath, FileMode.Open);
|
Add(filePath, FileMode.Open, access);
|
||||||
|
|
||||||
counterStart++;
|
counterStart++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user