Here's what I want it to do
Say I mount a directory /home/user/etc/stuff/
I want a .txt file with all the contents of every directory inside that folder output like this:
addons/hello/data/bin/examples/test.txt
in rows... so for each file, it would output on the next line.
addons/hello/data/bin/examples/asdf.txt
addons/hello/data/bin/examples/test.txt
addons/hello/data/bin/examples/hi.txt
And so on
(the directory really looks like this
/home/user/etc/stuff/addons/hello/data/bin/examples/test.txt
But I don't want the /home/user/etc/stuff/ path. All I want is everything after "stuff"
I want something similar to what the "tree" command does, except output differently.
Is there a way Java can do this? If not, is there a program out there that can?
Also, if it is possible in Java, is there a way we can add stuff to each line? Instead of outputting just the contents like this:
addons/hello/data/bin/examples/asdf.txt
addons/hello/data/bin/examples/test.txt
addons/hello/data/bin/examples/hi.txt
Can it output like this? (I need it like this):
resource.AddFile("addons/hello/data/bin/examples/asdf.txt")
resource.AddFile("addons/hello/data/bin/examples/test.txt")
resource.AddFile("addons/hello/data/bin/examples/hi.txt")
....
etc etc
Thank you for any help
Say I mount a directory /home/user/etc/stuff/
I want a .txt file with all the contents of every directory inside that folder output like this:
addons/hello/data/bin/examples/test.txt
in rows... so for each file, it would output on the next line.
addons/hello/data/bin/examples/asdf.txt
addons/hello/data/bin/examples/test.txt
addons/hello/data/bin/examples/hi.txt
And so on
(the directory really looks like this
/home/user/etc/stuff/addons/hello/data/bin/examples/test.txt
But I don't want the /home/user/etc/stuff/ path. All I want is everything after "stuff"
I want something similar to what the "tree" command does, except output differently.
Is there a way Java can do this? If not, is there a program out there that can?
Also, if it is possible in Java, is there a way we can add stuff to each line? Instead of outputting just the contents like this:
addons/hello/data/bin/examples/asdf.txt
addons/hello/data/bin/examples/test.txt
addons/hello/data/bin/examples/hi.txt
Can it output like this? (I need it like this):
resource.AddFile("addons/hello/data/bin/examples/asdf.txt")
resource.AddFile("addons/hello/data/bin/examples/test.txt")
resource.AddFile("addons/hello/data/bin/examples/hi.txt")
....
etc etc
Thank you for any help