- Timestamp:
- May 15, 2008, 4:05:42 PM (16 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/analyzer.tcl
r903 r1003 65 65 protected method _simOutput {message} 66 66 protected method _resultTooltip {} 67 protected method _mkdir {dir}68 67 69 68 private variable _tool "" ;# belongs to this tool … … 991 990 992 991 # ---------------------------------------------------------------------- 993 # USAGE: _mkdir <directory>994 #995 # Used internally to create the <directory> in the file system.996 # The parent directory is also created, as needed.997 # ----------------------------------------------------------------------998 itcl::body Rappture::Analyzer::_mkdir {dir} {999 set parent [file dirname $dir]1000 if {"." != $parent && "/" != $parent} {1001 if {![file exists $parent]} {1002 _mkdir $parent1003 }1004 }1005 file mkdir $dir1006 }1007 1008 # ----------------------------------------------------------------------1009 992 # USAGE: _fixSimControl 1010 993 # -
trunk/gui/scripts/tool.tcl
r903 r1003 29 29 public method abort {} 30 30 31 protected method _mkdir {dir} 31 32 protected method _output {data} 32 33 … … 297 298 298 299 # ---------------------------------------------------------------------- 300 # USAGE: _mkdir <directory> 301 # 302 # Used internally to create the <directory> in the file system. 303 # The parent directory is also created, as needed. 304 # ---------------------------------------------------------------------- 305 itcl::body Rappture::Tool::_mkdir {dir} { 306 set parent [file dirname $dir] 307 if {"." != $parent && "/" != $parent} { 308 if {![file exists $parent]} { 309 _mkdir $parent 310 } 311 } 312 file mkdir $dir 313 } 314 315 316 # ---------------------------------------------------------------------- 299 317 # USAGE: abort 300 318 #
Note: See TracChangeset
for help on using the changeset viewer.