Exemple #1
0
        public int CloseFile(string filename, DokanFileInfo info)
        {
            BlobStream stream = null;

            if (blobsWriting.TryRemove(filename, out stream))
            {
                Trace.WriteLine(string.Format("CloseFile {0}", filename));
                stream.Commit();
                stream.Dispose();
                this.blobCache.Remove(filename);
                stream.Blob.Container.InvalidateCache();
            }

            return(0);
        }