Example #1
0
        private void ProcessWriteFileLog(Dictionary <String, TrackOpenFileItem> trackOpenFileDictionary, FileOperateLog fileOperateLog)
        {
            TrackOpenFileItem alreadyTrackItem;

            // 닫힌 파일에 대한 쓰기 시도 추적
            if (trackOpenFileDictionary.TryGetValue(fileOperateLog.FilePath, out alreadyTrackItem) == false)
            {
                closedButTryingWriteReport.AppendText("- " + fileOperateLog.ToKeyString() + "\r\n");
                closedButTryingWriteCount++;
            }
        }
Example #2
0
        private void ProcessCloseFileLog(Dictionary <String, TrackOpenFileItem> trackOpenFileDictionary, FileOperateLog fileOperateLog)
        {
            TrackOpenFileItem alreadyTrackItem;

            if (trackOpenFileDictionary.TryGetValue(fileOperateLog.FilePath, out alreadyTrackItem) == true)
            {
                alreadyTrackItem.OpenCount--;
                if (alreadyTrackItem.OpenCount <= 0)
                {
                    trackOpenFileDictionary.Remove(fileOperateLog.FilePath);
                }
            }
            else
            {
                outputView.AppendText("- 열리지 않은 파일이 닫힘" + fileOperateLog.ToKeyString() + "\r\n");
            }
        }