Exemplo n.º 1
0
        public void Cleanup(string fileName, DokanFileInfo info)
        {
            if (info.Context != null)
            {
                Console.WriteLine(FormatProviders.DokanFormat(FormattableStringFactory.Create("{0}('{1}', {2} - entering", (object)nameof(Cleanup), (object)fileName, (object)info)));
            }
            FileStream context = info.Context as FileStream;

            if (context != null)
            {
                // ISSUE: explicit non-virtual call
                __nonvirtual(context.Dispose());
            }
            info.Context = (object)null;
            if (info.DeleteOnClose)
            {
                if (info.IsDirectory)
                {
                    Directory.Delete(this.method_0(fileName));
                }
                else
                {
                    File.Delete(this.method_0(fileName));
                }
            }
            long num = (long)this.method_1(nameof(Cleanup), fileName, info, NtStatus.Success);
        }
Exemplo n.º 2
0
        private NtStatus method_1(string string_1, string string_2, DokanFileInfo dokanFileInfo_0, NtStatus ntStatus_0, params object[] object_0_1)
        {
            string str = object_0_1 == null || object_0_1.Length == 0 ? string.Empty : ", " + string.Join(", ", ((IEnumerable <object>)object_0_1).Select <object, string>((Func <object, string>)(object_0_2 => string.Format((IFormatProvider)FormatProviders.DefaultFormatProvider, "{0}", new object[1]
            {
                object_0_2
            }))));

            this.consoleLogger_0.Debug(FormatProviders.DokanFormat(FormattableStringFactory.Create("{0}('{1}', {2}{3}) -> {4}", (object)string_1, (object)string_2, (object)dokanFileInfo_0, (object)str, (object)ntStatus_0)));
            return(ntStatus_0);
        }
Exemplo n.º 3
0
 private NtStatus method_2(string string_1, string string_2, DokanFileInfo dokanFileInfo_0, DokanNet.FileAccess fileAccess_2, FileShare fileShare_0, FileMode fileMode_0, FileOptions fileOptions_0, FileAttributes fileAttributes_0, NtStatus ntStatus_0)
 {
     this.consoleLogger_0.Debug(FormatProviders.DokanFormat(FormattableStringFactory.Create("{0}('{1}', {2}, [{3}], [{4}], [{5}], [{6}], [{7}]) -> {8}", (object)string_1, (object)string_2, (object)dokanFileInfo_0, (object)fileAccess_2, (object)fileShare_0, (object)fileMode_0, (object)fileOptions_0, (object)fileAttributes_0, (object)ntStatus_0)));
     return(ntStatus_0);
 }