mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-13 04:48:07 +02:00
honor FILE_DELETE_ON_CLOSE flag
This commit is contained in:
parent
0f1a691747
commit
ab858afee9
5 changed files with 29 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014-2016 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
*
|
||||
* You can redistribute this program and/or modify it under the terms of
|
||||
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||
|
@ -15,11 +15,13 @@ namespace SMBLibrary.Server
|
|||
{
|
||||
public string Path;
|
||||
public Stream Stream;
|
||||
public bool DeleteOnClose;
|
||||
|
||||
public OpenedFileObject(string path, Stream stream)
|
||||
public OpenedFileObject(string path, Stream stream, bool deleteOnClose)
|
||||
{
|
||||
Path = path;
|
||||
Stream = stream;
|
||||
DeleteOnClose = deleteOnClose;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue