GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   creating a directory file.. (https://gfy.com/showthread.php?t=297216)

NaughtyJenn 05-17-2004 05:18 PM

creating a directory file..
 
need to be able to take a selected directory on my ftp and have it output every file into a .txt list format

ie

a.jpg
b.jpg
c.jpg


and so forth..

Global Dialers 05-17-2004 05:19 PM

so what is it you are looking for or were you just posting to let us know what you were doing

NaughtyJenn 05-17-2004 05:22 PM

need a program or if anyone knows any fast ways to have all the files listed in a directory output into a txt file

NaughtyJenn 05-17-2004 05:29 PM

anything like this exist or am i giong crazy thinking there was something lol

zzgundamnzz 05-17-2004 05:31 PM

Why don't you download them first and get a Mass File Renamer?

ZoiNk 05-17-2004 05:31 PM

in Unix, log into the shell (use a telnet or ssh program)


ls >> filelist.txt


once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

ls -al >> filelist.txt


That's assuming you know how to move around in unix.
ZoiNk

Elli 05-17-2004 05:32 PM

Quote:

Originally posted by zzgundamnzz
Why don't you download them first and get a Mass File Renamer?
I believe she wants a listing of the contents of a directory, not to rename files.

That's a Unix command.. where are our Unix geeks? Surely they are somewhere.

I'm having flashbacks to grep and whatnot, but can't remember the syntax.

Elli 05-17-2004 05:33 PM

Quote:

Originally posted by ZoiNk
in Unix, log into the shell (use a telnet or ssh program)


ls >> filelist.txt


once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

ls -al >> filelist.txt


That's assuming you know how to move around in unix.
ZoiNk

Et voila!

I'm sure you could put it in a nice little script/batch pgm, non?

NaughtyJenn 05-17-2004 05:33 PM

Quote:

Originally posted by ZoiNk
in Unix, log into the shell (use a telnet or ssh program)


ls >> filelist.txt


once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

ls -al >> filelist.txt


That's assuming you know how to move around in unix.
ZoiNk

thats just it.. i dont have shell access.. hrmmm only other way is if i do that by downloading everything and writing the file from dos... thanx :)

Helix 05-17-2004 05:33 PM

Quote:

Originally posted by ZoiNk
in Unix, log into the shell (use a telnet or ssh program)


ls >> filelist.txt


once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

ls -al >> filelist.txt


That's assuming you know how to move around in unix.
ZoiNk


NaughtyJenn 05-17-2004 05:36 PM

anyone care to tell me what prefix i put beside "dir" in dos.. just did dir /? and cant see anything where a command would be to write to a file

beergood 05-17-2004 05:38 PM

prog:
----

#!/usr/bin/perl

$path = @ARGV[0];

system("ls -al $path > output.txt");

--

execution

./program.pl /path/you/want/to/list/

should work.

beergood 05-17-2004 05:39 PM

Quote:

Originally posted by NaughtyJenn
thats just it.. i dont have shell access.. hrmmm only other way is if i do that by downloading everything and writing the file from dos... thanx :)
Your isp will probably give you shell access if you email them and ask for it.

NaughtyJenn 05-17-2004 05:39 PM

Quote:

Originally posted by beergood
prog:
----

#!/usr/bin/perl

$path = @ARGV[0];

system("ls -al $path > output.txt");

--

execution

./program.pl /path/you/want/to/list/

should work.

dont have shell access though.. no ssh on the server..

NaughtyJenn 05-17-2004 05:40 PM

Quote:

Originally posted by beergood
Your isp will probably give you shell access if you email them and ask for it.
not my isp its a ftp account i need to get all the filenames from for a dmca notice..

beergood 05-17-2004 05:40 PM

Quote:

Originally posted by NaughtyJenn
dont have shell access though.. no ssh on the server..
Yeah I caught that late. I can't live without a shell

NaughtyJenn 05-17-2004 05:42 PM

Quote:

Originally posted by beergood
Yeah I caught that late. I can't live without a shell
yeah if i had shell access it would be alot easier.. coulda dumped it and did what i have to do and be gone..but of course my luck isnt that good :) .. i have all the files downloaded onto my hd just need to get a txt version listing all the files lol

NaughtyJenn 05-17-2004 05:43 PM

n/m got it :) dir > textfilename.txt :)

thnx for the help though :)

beergood 05-17-2004 05:44 PM

Quote:

Originally posted by NaughtyJenn
yeah if i had shell access it would be alot easier.. coulda dumped it and did what i have to do and be gone..but of course my luck isnt that good :) .. i have all the files downloaded onto my hd just need to get a txt version listing all the files lol
I fucking suck at windows. About all I can think is open WS_FTP and press the DirInfo button on whatever directory you want a listing off. You'll have the text version of the directory information and you could probably narrow it from there.

beergood 05-17-2004 05:45 PM

Quote:

Originally posted by NaughtyJenn
n/m got it :) dir > textfilename.txt :)

thnx for the help though :)

good deal. remember that for the once in a blue moon I have to do something on my windows machine

NaughtyJenn 05-17-2004 05:46 PM

Quote:

Originally posted by beergood
I fucking suck at windows. About all I can think is open WS_FTP and press the DirInfo button on whatever directory you want a listing off. You'll have the text version of the directory information and you could probably narrow it from there.
yeah just took what i knew from shell and applied it to dos format :) wicked thanks alot everyone though.. time to go file a report :)


All times are GMT -7. The time now is 02:24 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123