Esempio n. 1
0
        public NtStatus DeleteDirectory(string filename, DokanFileInfo info)
        {
            CacheEntry entry = cache_.Lookup(filename);

            entry.RemoveAllCache();
            entry.Parrent.RemoveFindFilesCache();

            return(ope_.DeleteDirectory(filename, info));
        }
Esempio n. 2
0
        ////

        internal NtStatus DeleteDirectoryProxy(string rawFileName, DokanFileInfo rawFileInfo)
        {
            try
            {
                NtStatus result = _operations.DeleteDirectory(rawFileName, rawFileInfo);
                return(result);
            }
            catch (Exception ex)
            {
                ServiceRegistration.Get <ILogger>().Warn("Dokan exception: ", ex);
                return(DokanResult.InvalidParameter);
            }
        }
Esempio n. 3
0
 public int DeleteDirectoryProxy(IntPtr rawFileName, ref DOKAN_FILE_INFO rawFileInfo)
 {
     try
     {
         string file = GetFileName(rawFileName);
         return(operations.DeleteDirectory(file, ConvertFileInfo(ref rawFileInfo)));
     }
     catch (Exception ex)
     {
         Log.ErrorException("DeleteDirectoryProxy threw: ", ex);
         return(-1);
     }
 }
Esempio n. 4
0
        ////

        public int DeleteDirectoryProxy(string rawFileName,
                                        DokanFileInfo rawFileInfo)
        {
            try
            {
                return((int)_operations.DeleteDirectory(rawFileName, rawFileInfo));
            }
            catch
            {
#if DEBUG
                throw;
#endif
                return(ERROR_INVALID_FUNCTION);
            }
        }
Esempio n. 5
0
        ////

        public NtStatus DeleteDirectoryProxy(string rawFileName,
                                             DokanFileInfo rawFileInfo)
        {
            try
            {
                logger.Debug("DeleteDirectoryProxy : {0}", rawFileName);
                logger.Debug("\tContext\t{0}", rawFileInfo);

                var result = operations.DeleteDirectory(rawFileName, rawFileInfo);

                logger.Debug("DeleteDirectoryProxy : {0} Return : {1}", rawFileName, result);
                return(result);
            }
            catch (Exception ex)
            {
                logger.Error("DeleteDirectoryProxy : {0} Throw : {1}", rawFileName, ex.Message);
                return(DokanResult.InvalidParameter);
            }
        }
        ////

        public NtStatus DeleteDirectoryProxy(string rawFileName,
                                             DokanFileInfo rawFileInfo)
        {
            try
            {
                Trace("\nDeleteDirectoryProxy : " + rawFileName);
                Trace("\tContext\t" + ToTrace(rawFileInfo));

                NtStatus result = operations.DeleteDirectory(rawFileName, rawFileInfo);

                Trace("DeleteDirectoryProxy : " + rawFileName + " Return : " + result);
                return(result);
            }
#pragma warning disable 0168
            catch (Exception ex)
#pragma warning restore 0168
            {
                Trace("DeleteDirectoryProxy : " + rawFileName + " Throw : " + ex.Message);
                return(DokanResult.InvalidParameter);
            }
        }