public int lchmod(String filename, int mode) { return posix().lchmod(filename, mode); }
public int lchmod(String filename, int mode) { try { return posix.lchmod(filename, mode); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); } }
public int lchmod(String filename, int mode) { return posix().lchmod(filename, mode); }
public int lchmod(String filename, int mode) { try { return posix.lchmod(filename, mode); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); } }
public int lchmod(String filename, int mode) { try { return posix.lchmod(filename, mode); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); } }
public int lchmod(String filename, int mode) { return posix().lchmod(filename, mode); }
public int lchmod(String filename, int mode) { try { return posix.lchmod(filename, mode); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); } }
public int lchmod(String filename, int mode) { return posix().lchmod(filename, mode); }
@Hide(value=OS.NT, posixImpl = PosixImpl.JAVA) public static void lchmod(PyObject path, int mode) { if (posix.lchmod(absolutePath(path).toString(), mode) < 0) { throw errorFromErrno(path); } }
@JRubyMethod(required = 1) public IRubyObject lchmod(ThreadContext context, IRubyObject arg) { int mode = (int) arg.convertToInteger().getLongValue(); if (!new File(path).exists()) { throw context.runtime.newErrnoENOENTError(path); } return context.runtime.newFixnum(context.runtime.getPosix().lchmod(path, mode)); }
@JRubyMethod(required = 1) public IRubyObject lchmod(ThreadContext context, IRubyObject arg) { int mode = (int) arg.convertToInteger().getLongValue(); if (!new File(path).exists()) { throw context.runtime.newErrnoENOENTError(path); } return context.runtime.newFixnum(context.runtime.getPosix().lchmod(path, mode)); }
@JRubyMethod(required = 1, rest = true, meta = true) public static IRubyObject lchmod(ThreadContext context, IRubyObject recv, IRubyObject[] args) { Ruby runtime = context.runtime; int count = 0; RubyInteger mode = args[0].convertToInteger(); for (int i = 1; i < args.length; i++) { JRubyFile file = file(args[i]); if (0 != runtime.getPosix().lchmod(file.toString(), (int) mode.getLongValue())) { throw runtime.newErrnoFromLastPOSIXErrno(); } else { count++; } } return runtime.newFixnum(count); }
@JRubyMethod(required = 1, rest = true, meta = true) public static IRubyObject lchmod(ThreadContext context, IRubyObject recv, IRubyObject[] args) { Ruby runtime = context.runtime; int count = 0; RubyInteger mode = args[0].convertToInteger(); for (int i = 1; i < args.length; i++) { JRubyFile file = file(args[i]); if (0 != runtime.getPosix().lchmod(file.toString(), (int)mode.getLongValue())) { throw runtime.newErrnoFromLastPOSIXErrno(); } else { count++; } } return runtime.newFixnum(count); }
@JRubyMethod(required = 1, rest = true, meta = true) public static IRubyObject lchmod(ThreadContext context, IRubyObject recv, IRubyObject[] args) { Ruby runtime = context.runtime; int count = 0; RubyInteger mode = args[0].convertToInteger(); for (int i = 1; i < args.length; i++) { JRubyFile file = file(args[i]); if (0 != runtime.getPosix().lchmod(file.toString(), (int)mode.getLongValue())) { throw runtime.newErrnoFromLastPOSIXErrno(); } else { count++; } } return runtime.newFixnum(count); }
@JRubyMethod(required = 1, rest = true, meta = true) public static IRubyObject lchmod(ThreadContext context, IRubyObject recv, IRubyObject[] args) { Ruby runtime = context.runtime; int count = 0; RubyInteger mode = args[0].convertToInteger(); for (int i = 1; i < args.length; i++) { JRubyFile file = file(args[i]); if (0 != runtime.getPosix().lchmod(file.toString(), (int) mode.getLongValue())) { throw runtime.newErrnoFromLastPOSIXErrno(); } else { count++; } } return runtime.newFixnum(count); }