honor FILE_DELETE_ON_CLOSE flag

This commit is contained in:
Tal Aloni 2017-01-06 10:42:15 +02:00
parent 0f1a691747
commit ab858afee9
5 changed files with 29 additions and 9 deletions

View file

@ -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;
}
}
}