Posted 04 March 2017 - 09:23 PM
Hi.
If I have a directory like:
Disk
|
+—abc
+—def
+—folder1
\\\\\\+—ghi
\\\\\\+—jkl
How would I turn it into a table like so:
x = {"/abc","/def","/folder1/ghi","/folder1/jkl"}
I tried something like:
>>> x = find("*")
>>> x
{"abc","def","ghi","jkl"}
But as you can see, it doesn't return the directory.
How would I go about doing this?
Any help would be appreciated!
PS: Sorry about the \\\ for the directory listing! I couldn't make it display repeated spaces!
If I have a directory like:
Disk
|
+—abc
+—def
+—folder1
\\\\\\+—ghi
\\\\\\+—jkl
How would I turn it into a table like so:
x = {"/abc","/def","/folder1/ghi","/folder1/jkl"}
I tried something like:
>>> x = find("*")
>>> x
{"abc","def","ghi","jkl"}
But as you can see, it doesn't return the directory.
How would I go about doing this?
Any help would be appreciated!
PS: Sorry about the \\\ for the directory listing! I couldn't make it display repeated spaces!