ath> <attributes>
        Set file attributes for <path>
}
RETURNS {
    File attributes
}
}

    proc fsetstat { args } {
	variable file_attr
	set options {
	    {help "command help"}
	}
	array set params [::xsdb::get_options args $options 0]
	if { $params(help) } {
	    return [help tfile [lindex [split [lindex [info level 0] 0] ::] end]]
	}

	if { [llength $args] != 2 } {
	    error "wrong # args: should be \"handle attributes\""
	}

	set chan [::xsdb::getcurchan]
	set fhandle [lindex $args 0]
	set attrs [lindex $args 1]
	::tcf::send_command $chan FileSystem fsetstat "so[list $file_attr]" e [list $fhandle $attrs]
	return ""
    }
    namespace export fsetstat
    ::xsdb::setcmdmeta {tfile fsetstat} categories {tfile}
    ::xsdb::setcmdmeta {tfile fsetstat} brief {Set file attributes for handle}
    ::xsdb::setcmdmeta {tfile fsetstat} description {
SYNOPSIS {
    tfile fsetstat <handle> <attributes>
        Set file attributes for <handle>
}
RETURNS {
    File attributes
}
}

    proc remove { args } {
	set options {
	    {help "command help"}
	}
	array set params [::xsdb::get_options args $options 0]
	if { $params(help) } {
	    return [help tfile [lindex [split [lindex [info level 0] 0] ::] end]]
	}

	if { [llength $args] != 1 } {
	    error "wrong # args: should be \"path\""
	}

	set chan [::xsdb::getcurchan]
	set path [lindex $args 0]
	::tcf::send_command $chan FileSystem remove s e [list $path]
	return ""
    }
    namespace export remove
    ::xsdb::setcmdmeta {tfile remove} categories {tfile}
    ::xsdb::setcmdmeta {tfile remove} brief {Remove path}
    ::xsdb::setcmdmeta {tfile remove} description {
SYNOPSIS {
    tfile remove <path>
        Remove <path>
}
RETURNS {
}
}

    proc rmdir { args } {
	set options {
	    {help "command help"}
	}
	array set params [::xsdb::get_options args $options 0]
	if { $params(help) } {
	    return [help tfile [lindex [split [lindex [info level 0] 0] ::] end]]
	}

	if { [llength $args] != 1 } {
	    error "wrong # args: should be \"path\""
	}

	set chan [::xsdb::getcurchan]
	set path [lindex $args 0]
	::tcf::send_command $chan FileSystem rmdir s e [list $path]
	return ""
    }
    namespace export rmdir
    ::xsdb::setcmdmeta {tfile rmdir} categories {tfile}
    ::xsdb::setcmdmeta {tfile rmdir} brief {Remove directory}
    ::xsdb::setcmdmeta {tfile rmdir} description {
SYNOPSIS {
    tfile rmdir <path>
        Remove directory <path>
}
RETURNS {
}
}

    proc mkdir { args } {
	variable file_attr
	set options {
	    {help "command help"}
	}
	array set params [::xsdb::get_options args $options 0]
	if { $params(help) } {
	    return [help tfile [lindex [split [lindex [info level 0] 0] ::] end]]
	}

	if { [llength $args] < 1 || [llength $args] > 2 } {
	    error "wrong # args: should be \"path \[attributes\]\""
	}

	set chan [::xsdb::getcurchan]
	set path [lindex $args 0]
	if { [llength $args] > 1 } {
	    set attrs [lindex $args 1]
	} else {
	    set attrs {}
	}
	::tcf::send_command $chan FileSystem mkdir "so[list $file_attr]" e [list $path $attrs]
	return ""
    }
    namespa