Changeset 1003 for trunk/gui/scripts/tool.tcl
- Timestamp:
- May 15, 2008, 4:05:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.