@@ -199,6 +199,64 @@ def main(args):
199
199
if not python_is_compatible ():
200
200
sys .exit (1 )
201
201
202
+ print ("Doing some gh action machine filesystem exploration" )
203
+
204
+ # 1. Print current working directory
205
+ import os
206
+
207
+ cwd = os .getcwd ()
208
+ print ("Current working directory:" , cwd )
209
+
210
+ # 2. Print everything in current working directory
211
+ print ("\n Contents of cwd:" )
212
+ for item in os .listdir (cwd ):
213
+ print (item )
214
+
215
+ print ()
216
+ cwd = os .path .join (cwd , "extension" )
217
+ print ("Current working directory:" , cwd )
218
+ for item in os .listdir (cwd ):
219
+ print (item )
220
+
221
+ print ()
222
+ cwd = os .path .join (cwd , "llm" )
223
+ print ("Current working directory:" , cwd )
224
+ for item in os .listdir (cwd ):
225
+ print (item )
226
+
227
+ print ()
228
+ cwd = os .path .join (cwd , "tokenizers" )
229
+ print ("Current working directory:" , cwd )
230
+ for item in os .listdir (cwd ):
231
+ print (item )
232
+
233
+ print ()
234
+ cwd = os .path .join (cwd , "third-party" )
235
+ print ("Current working directory:" , cwd )
236
+ for item in os .listdir (cwd ):
237
+ print (item )
238
+
239
+ print ()
240
+ pcre2 = os .path .join (cwd , "pcre2" )
241
+ print ("Current working directory:" , pcre2 )
242
+ for item in os .listdir (pcre2 ):
243
+ print (item )
244
+
245
+ print ()
246
+ re2 = os .path .join (cwd , "re2" )
247
+ print ("Current working directory:" , re2 )
248
+ for item in os .listdir (re2 ):
249
+ print (item )
250
+
251
+ # # 3. Print everything in ./extension/llm/tokenizers/third-party/pcre2/src
252
+ # target_path = os.path.join(cwd, "extension", "llm", "tokenizers", "third-party", "pcre2", "src")
253
+ # print(f"\nContents of {target_path}:")
254
+ # if os.path.exists(target_path):
255
+ # for item in os.listdir(target_path):
256
+ # print(item)
257
+ # else:
258
+ # print("Target path does not exist.")
259
+
202
260
parser = build_args_parser ()
203
261
args = parser .parse_args ()
204
262
0 commit comments