aboutsummaryrefslogtreecommitdiff
path: root/src/jssh.js
diff options
context:
space:
mode:
authoramy <[email protected]>2023-02-16 14:04:44 -0600
committeramy <[email protected]>2023-02-16 14:04:44 -0600
commitf7d6c8db1fd7fa82c7da96d0f06da4e49fbd9a05 (patch)
treea2d0ad68c24962372b723aa66282401d893d8924 /src/jssh.js
parentc2d46691d9b774872ace260446ff309ec6a813b3 (diff)
a certified mess
Diffstat (limited to 'src/jssh.js')
-rw-r--r--src/jssh.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/jssh.js b/src/jssh.js
index 3a49b08..efbb78e 100644
--- a/src/jssh.js
+++ b/src/jssh.js
@@ -214,6 +214,18 @@ class jssh {
break;
}
}
+ return id;
+ }
+ get_file(path) {
+ let zz = path.split("/");
+ let ff = zz.splice(zz.length - 1, 1);
+ let ww = this.set_wd(zz.join("/"));
+ for (let f of ww) {
+ if (f.name == ff) {
+ //console.log(f);
+ return f;
+ }
+ }
}
ex(stdin = null) {
let temp_working_dir = this.working_dir;