jnr.posix.POSIX.getcwd()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(169)

本文整理了Java中jnr.posix.POSIX.getcwd()方法的一些代码示例,展示了POSIX.getcwd()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。POSIX.getcwd()方法的具体详情如下:
包路径:jnr.posix.POSIX
类名称:POSIX
方法名:getcwd

POSIX.getcwd介绍

暂无

代码示例

代码示例来源:origin: com.github.jnr/jnr-posix

  1. public String getcwd() {
  2. return posix().getcwd();
  3. }

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

  1. public String getcwd() {
  2. return posix().getcwd();
  3. }

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

  1. public String getcwd() {
  2. try {return posix.getcwd(); } catch (UnsatisfiedLinkError ule) { return unimplementedString(); }
  3. }

代码示例来源:origin: com.github.jnr/jnr-posix

  1. public String getcwd() {
  2. try {return posix.getcwd(); } catch (UnsatisfiedLinkError ule) { return unimplementedString(); }
  3. }

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

  1. public String getcwd() {
  2. try {return posix.getcwd(); } catch (UnsatisfiedLinkError ule) { return unimplementedString(); }
  3. }

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

  1. public String getcwd() {
  2. return posix().getcwd();
  3. }

代码示例来源:origin: jerlang/jerlang

  1. /**
  2. * http://www.erlang.org/doc/man/file.html#get_cwd-0
  3. */
  4. public static Term get_cwd_0() {
  5. return Tuple.of(ok, Str.of(posix.getcwd()));
  6. }

代码示例来源:origin: org.jruby/jruby-complete

  1. if (!runtime.getCurrentDirectory().equals(runtime.getPosix().getcwd())) {
  2. String arg = prog.toString();
  3. if ((arg = ShellLauncher.changeDirInsideJar(runtime, arg)) != null) {

代码示例来源:origin: org.jruby/jruby-core

  1. if (!runtime.getCurrentDirectory().equals(runtime.getPosix().getcwd())) {
  2. String arg = prog.toString();
  3. if ((arg = ShellLauncher.changeDirInsideJar(runtime, arg)) != null) {

代码示例来源:origin: org.jruby/jruby-complete

  1. @JRubyMethod(name = "system", required = 1, rest = true, module = true, visibility = PRIVATE)
  2. public static IRubyObject system(ThreadContext context, IRubyObject recv, IRubyObject[] args) {
  3. final Ruby runtime = context.runtime;
  4. boolean needChdir = !runtime.getCurrentDirectory().equals(runtime.getPosix().getcwd());

代码示例来源:origin: org.jruby/jruby-core

  1. @JRubyMethod(name = "system", required = 1, rest = true, module = true, visibility = PRIVATE)
  2. public static IRubyObject system(ThreadContext context, IRubyObject recv, IRubyObject[] args) {
  3. final Ruby runtime = context.runtime;
  4. boolean needChdir = !runtime.getCurrentDirectory().equals(runtime.getPosix().getcwd());

相关文章

POSIX类方法