HP3000-L Archives

June 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Wed, 16 Jun 1999 10:47:56 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
Arthur Frank writes:
> 1.  Is there a way I could use FINFO to determine whether or not a file that
> exists (returns TRUE from FINFO("filename",0)) is a temp file or permanent
> file?

You could examine the low-order two bits of FINFO("filename","intfopt") to
see whether it's temp or perm.  But note that "fmtfopt" doesn't tell you if
the file is temp!  This seems like a bug to me....

Or you could use 'exists' against a file equate, i.e.:

file filename,old
finfo("*filename","exists")

or

file filename,oldtemp
finfo("*filename","exists")
--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2