PDA

View Full Version : [Fixed] list -la?


mr_F_2
02-01-2004, 06:34 PM
seems to me list -la doesn't show hidden files, but instead it hides .* files


..i always thought -la showed hidden files

wooolF[RM]
02-01-2004, 06:40 PM
ioFTPD hides all files beginning with "." by default (*as I think*) that's why u can't see them no matter if u do list or list -al

edit: all files beginning with .ioftpd are automatically hidden by ioFTPD

darkone
02-01-2004, 07:32 PM
Hmms, it shouldn't hide hidden files... i think... or did i add that :)

mr_F_2
02-01-2004, 08:52 PM
wooolF[RM]: it hides .ioFTPD and .ioFTPD.message

but doesn't hide (for example)
.raceinfo
.speed

..etc
which makes sense.. but list -la shouldn't BLOCK these from being shown, as a lot of people have their ftp clients set to list -la

can u fix this d1?

neoxed
02-01-2004, 09:17 PM
It only hides files beginning with .ioFTPD

.raceinfo
.speed

Should be:

.ioFTPD.raceinfo
.ioFTPD.speed

Also:

Unless your temp files start with .ioFTPD, you'll need a PRE RMD script to remove the temp files. ioFTPD should delete all files beginning with .ioFTPD when the directory is removed, so you wouldn't need a PRE RMD script.

darkone
02-01-2004, 10:04 PM
Yep, .ioFTPD* files are hidden/unretrievable on purpose. Everything else should be, and is visible.

mr_F_2
02-01-2004, 10:09 PM
Originally posted by NeoXed
It only hides files beginning with .ioFTPD

.raceinfo
.speed

Should be:

.ioFTPD.raceinfo
.ioFTPD.speed

Also:

Unless your temp files start with .ioFTPD, you'll need a PRE RMD script to remove the temp files. ioFTPD should delete all files beginning with .ioFTPD when the directory is removed, so you wouldn't need a PRE RMD script.

ahh! thanks for the tip! :)

wooolF[RM]
02-02-2004, 05:24 AM
Originally posted by mr_F
wooolF[RM]: it hides .ioFTPD and .ioFTPD.message

but doesn't hide (for example)
.raceinfo
.speed

..etcdo people have problems reading plain english? :rolleyes: Originally posted by wooolF[RM]
ioFTPD hides all files beginning with "." by default (*as I think*) that's why u can't see them no matter if u do list or list -al

edit: all files beginning with .ioftpd are automatically hidden by ioFTPD

mr_F_2
02-02-2004, 11:18 AM
Originally posted by wooolF[RM]
do people have problems reading plain english? :rolleyes:

that's pretty unecessary...
The thing about the .ioFTPD* files isn't something i can just guess, I had to ask about it.

as for your responses, they were helpful in that I can now have my files be labeled ".ioFTPD.*" to have them be hidden, but there is a problem in ioFTPD which I think i've mentioned 3 times already.

if users use list -la .* files (NOT .ioFTPD.* files) are not displayed!

I know that a lot of people have their FTP clients set to use list -la, and these people, if trying to delete a dirtectory, will not see the what should be visible .* files but won't unless they use "list" without the "-la".

even further, an example:

/somedir/
list -la
somefile.file


/somedir/
list
somefile.file
.speed

do you understand?

wooolF[RM]
02-02-2004, 01:31 PM
my last post had only 1 purpose : to show you that u have explained me something that I've allready explained in this thread 2 hours before your post (the edited part of my 1st reply)... nothing else, nothing more...

I see rest of your problem now, but at the time of my reply that problem wasn't stated clear enough (for me at least).

Regards

Mouton
02-02-2004, 02:30 PM
Indeed.

The -a parameter, in LIST and STAT, seems to HIDE .* files, instead of the other way around.

That's probably the problem (dark).

Mouton
02-06-2004, 03:17 PM
fixed in upcoming version.

PopWeasel
04-26-2004, 01:36 AM
Ok, I have a question regarding this so I'll post here instead of creating a new thread.

Is there a script/utility/method to convert:

.raceinfo
.speed
.message

to:

.ioFTPD.raceinfo
.ioFTPD.speed
.ioFTPD.message

:confused: :confused:

Because I've been using nRsfv script for some time (very nice script I might add) with RainManFTPD :p and I'd like to save my dir stats and have the files hidden properly when people browse dirs in ioFTPD (right now these files are being shown because they're not prefixed by .ioFTPD*).

Also, I tried to edit them by hand using Explorer gui but Windows whines "you must type a file name" due to nothing in the file name before the "." so hopefully there's some other way to do this! :o

Thanks!

mr_F_2
04-26-2004, 03:41 AM
heh
it's your lucky day.
I'm the programmer of nRsfv.

there have been many internal changes since i stopped developing nRsfv under raidenftpd, and three obvious external changes, you'll find this in the ini file:


[ioFTPD]
LINK_INCOMPLETE=1
OWNERUSR=0
OWNERGRP=0


1st line, 1 = make parent link to incomplete, 0 = off
2nd line, set UID to chmod headers to
3rd line, set GID to chmod headers to.

other than that, the setup is the same and an ioftpd setup instruction set is included with.

see attatched rar (moderator will need to approve it)

as for renaming the already existing files on your drive, just open a command prompt in any given folder and type:
ren .message .ioFTPD.message
...etc

PopWeasel
04-26-2004, 04:08 AM
Cooll mr_F, I am definately planning on checking out the latest version of nRsfv for ioFTPD. It's been a great sfv/stats script for me.

I was wondering if this might be possible. I saw somewhere a DelACL script, I think it was by FTPServerTools. It let you recursively go through and del all your .raidenftpd.acl files. Would it be possible to alter the function from del to ren and specify the file name to ren from and the file name to ren to? Cause I have billions of these files and it would genuinely suxx0r to have to do them all by hand. Hum, I wonder if there is a way to do that in dos..

Edit: DelACL isn't on FTPServerTools page so googling for it shows that one is yours too. http://nrscripts.staghosting.com/rdn-scripts.htm

u da man!:banana:

mr_F_2
04-26-2004, 04:28 AM
try G6 utilities. it's a mass file renamer and can load paths recursively.

www.gene6.com

PopWeasel
04-26-2004, 04:54 AM
Ok will do..thanks.:)

Mouton
04-26-2004, 06:58 AM
Originally posted by mr_F
see attatched rar (moderator will need to approve it) Hardly the place to post a ioFTPD script. Post on /scripts pls.

mr_F_2
04-26-2004, 07:50 AM
Mouton : I didn't put it there because I didn't want it there. It was more just for this 1 guy for now. I'll just email it to him