152153154155156157158
} public Node external_is_exists(Node startAt) throws Exception { startAt.isGoodArgsLength(true, 2); File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString()); return new Node(f.exists() ? Node.TRUE: Node.FALSE); }
158159160161162163164
} public Node external_is_can_read(Node startAt) throws Exception { startAt.isGoodArgsLength(true, 2); File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString()); return new Node(f.canRead() ? Node.TRUE: Node.FALSE); }
164165166167168169170
} public Node external_is_can_write(Node startAt) throws Exception { startAt.isGoodArgsLength(true, 2); File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString()); return new Node(f.canWrite() ? Node.TRUE: Node.FALSE); }
170171172173174175176
} public Node external_is_file(Node startAt) throws Exception { startAt.isGoodArgsLength(true, 2); File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString()); return new Node(f.isFile() ? Node.TRUE: Node.FALSE); }
176177178179180181182
} public Node external_is_directory(Node startAt) throws Exception { startAt.isGoodArgsLength(true, 2); File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString()); return new Node(f.isDirectory() ? Node.TRUE: Node.FALSE); }
182183184185186187188
} public Node external_is_link(Node startAt) throws Exception { startAt.isGoodArgsLength(true, 2); File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString()); return new Node(isLink(f) ? Node.TRUE: Node.FALSE); }
188189190191192193194
} public Node external_is_hidden(Node startAt) throws Exception { startAt.isGoodArgsLength(true, 2); File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString()); return new Node(f.isHidden() ? Node.TRUE: Node.FALSE); }
194195196197198199200
} public Node external_file_size(Node startAt) throws Exception { startAt.isGoodArgsLength(true, 2); File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString()); return new Node(f.length()); }
200201202203204205206
} public Node external_last_modified(Node startAt) throws Exception { startAt.isGoodArgsLength(true, 2); File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString()); return new Node(f.lastModified()); }
206207208209210211212
} public Node external_file_name(Node startAt) throws Exception { startAt.isGoodArgsLength(true, 2); File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString()); return new Node(f.getName()); }