Ignore:
Timestamp:
May 15, 2008, 4:05:42 PM (16 years ago)
Author:
dkearney
Message:

definging _mkdir in tool.tcl and removing it from analyzer because the code that uses it has moved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/tool.tcl

    r903 r1003  
    2929    public method abort {}
    3030
     31    protected method _mkdir {dir}
    3132    protected method _output {data}
    3233
     
    297298
    298299# ----------------------------------------------------------------------
     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# ----------------------------------------------------------------------
     305itcl::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# ----------------------------------------------------------------------
    299317# USAGE: abort
    300318#
Note: See TracChangeset for help on using the changeset viewer.