public Path getWorkingDirectory ( ) { String name = get ( "mapred.working.dir" ) ; if ( name != null ) { return new Path ( name ) ; } else { try { Path dir = FileSystem . get ( this ) . getWorkingDirectory ( ) ; set ( "mapred.working.dir" , dir . toString ( ) ) ; return dir ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } } }
Get the current working directory for the default file system .