Добавлена проверка на отсутствие файла и удаление из дерева

This commit is contained in:
svkalinin
2022-09-19 15:00:05 +03:00
parent 02bc6e852d
commit 8796277014
4 changed files with 10 additions and 2 deletions

View File

@@ -258,6 +258,10 @@ namespace eval FileOper {
proc Edit {fileFullPath} {
global nbEditor tree
if {[file exists $fileFullPath] == 0} {
return false
}
set filePath [file dirname $fileFullPath]
set fileName [file tail $fileFullPath]
regsub -all {\.|/|\\|\s} $fileFullPath "_" itemName