Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #875

Re: Filename length

From "David Holden" <SpamBin@apdl.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Filename length
Date 2011-10-14 14:49 +0000
Organization APDL
Message-ID <9fr0g1Fm6nU1@mid.individual.net> (permalink)
References <gemini.lt20rj006hph8013w.alan@alanwrigley.com>

Show all headers | View raw


On 14-Oct-2011, Alan Wrigley <alan@alanwrigley.com> wrote:

> It's been many a year since I last had a machine with restricted filename
> length, so could someone please remind me what actually happens if you try
> to create a directory (e.g. with OS_File 8) with a long filename. Does it
> fail completely, or does it leave a directory in place with a truncated
> name?
>
It truncates the file or directory name to the maximum permitted length.

> And if the latter, will OS_File 17 return 'not found' on the full name, or
> will it match the first n characters and return 'directory found'?

No, it won't find it because it won't be there. In fact this is the simplest
way to find out if a disc is formatted in old or RO4 format.

The logic of this is that, even under RO 3.x, some filing systems could have
long file/directory names, eg. x-files, so the OS commands can cope, it's
the underlying filing systems that can't.

-- 
David Holden  -  APDL  -  <http://www.apdl.co.uk>

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Filename length Alan Wrigley <alan@alanwrigley.com> - 2011-10-14 12:47 +0100
  Re: Filename length Martin Wuerthner <spamtrap@mw-software.com> - 2011-10-14 16:28 +0200
    Re: Filename length Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-10-14 16:00 +0100
      Re: Filename length Gazza <usenet@garethlock.com> - 2011-10-15 17:47 -0700
        Re: Filename length druck <news@druck.freeuk.com> - 2011-10-16 18:20 +0100
  Re: Filename length "David Holden" <SpamBin@apdl.co.uk> - 2011-10-14 14:49 +0000
    Re: Filename length Theo Markettos <theom+news@chiark.greenend.org.uk> - 2011-10-17 20:11 +0100

csiph-web