PageRenderTime 94ms CodeModel.GetById 71ms app.highlight 0ms RepoModel.GetById 20ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre3/bsh/commands/cd.bsh

#
Unknown | 17 lines | 11 code | 6 blank | 0 comment | 0 complexity | e27b7d0478e4001567ba5b2b11a5b5ca MD5 | raw file
 1
 2bsh.help.cd = "usage: cd( path )";
 3
 4/*
 5	Additions by Kevin Raulerson, http://www.spin.com.mx/~kevinr/
 6*/
 7cd( String pathname ) {
 8
 9    file = pathToFile( pathname );
10
11	if ( file.exists() && file.isDirectory() )
12		bsh.cwd = file.getCanonicalPath();
13	else
14        print( "No such directory: "+pathname);
15
16}
17