Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: ruffneck on February 08, 2003, 10:03:24 PM

Title: File name length
Post by: ruffneck on February 08, 2003, 10:03:24 PM
i have forgot how long can  filename be in amigaOS... can anybody  refresh my mind:)
Title: Re: File name lenght
Post by: iamaboringperson on February 08, 2003, 10:07:15 PM
108?
Title: Re: File name length
Post by: Skippy on February 08, 2003, 11:23:26 PM
http://www.gregdonner.org/os35faq/diskfileoperation.html

Skyppi

Title: Re: File name length
Post by: Mike_Amiga on February 09, 2003, 12:19:35 AM
@ Skippy

Who is your avatar? And where you once the landlord at The Kings Arms pub? ;-) :pint::hammer:

PS: I think the limit was 12 characters.
Title: Re: File name length
Post by: Skippy on February 09, 2003, 12:34:43 AM
Larisa Oleynik.

No, I have never been a Landlord of a pub, I only drink in them.

Skippy
Title: Re: File name length
Post by: Rollo on February 09, 2003, 12:54:24 AM
Theoretical max is 108, but as standard it is set to 30. I'm stuck at a lousy 25 with PFS2, anyone knows if this can be changed as with PFS3?
Title: Re: File name length
Post by: Piru on February 09, 2003, 01:33:03 AM
file/dir name limit is 107 chars (set by FileInfoBlock fib_FileName field length which is 108. However the last char is the terminating null char, thus 107).
 
PFS3 can have upto 107 char file/dir names.
You can either use pfsformat FILENAMESIZE=FNSIZE/K/N option at format time, or use setfnsize command to grow the size on the fly. The length can only be grown, not shrinken (unless, of course, you reformat).

[edit: typofix(tm)]
Title: Re: File name length
Post by: weirdami on February 09, 2003, 04:06:20 AM
Quote
Larisa Oleynik.


AKA - Alex Mack of 'The Secret World of Alex Mack'.
Title: Re: File name length
Post by: Mike_Amiga on February 09, 2003, 04:43:09 AM
OT:Things clicked when I found a site that mentioned she was on Third Rock From The Sun. She played Tommy's girlfriend, I think? Been in quite a few movies I've never seen. Genuinely worndered who the hell she was.
Title: Re: File name length
Post by: Mike_Amiga on February 09, 2003, 04:46:24 AM
@ Skippy

Actually the landlords name was generally shortend to Skip, and guess what it was cos he came from OZ. I think he's gone back there now, he is an Ex-landlord (retired).
Title: Re: File name length
Post by: Quixote on February 09, 2003, 09:07:32 AM
ruffneck realized:
Quote
i have forgot how long can  filename be in amigaOS... can anybody  refresh my mind:)
;-) It depends on which version of Workbench you're using.  WB3.1 and under use only 30 or 32 characters, but WB 3.5 and 3.9 permit a little over 100 characters.

To determine the exact number, try creating a drawer with the file name 12345678901234567890123... (and so on.) The OS will chop the excess character off the end.