home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / languages / tcl / !tcldoc / doc / RiscOS / file < prev    next >
Encoding:
Text File  |  1994-09-24  |  2.1 KB  |  58 lines

  1. '\"
  2. '\" Copyright (c) 1993 The Regents of the University of California.
  3. '\" All rights reserved.
  4. '\"
  5. '\" Permission is hereby granted, without written agreement and without
  6. '\" license or royalty fees, to use, copy, modify, and distribute this
  7. '\" documentation for any purpose, provided that the above copyright
  8. '\" notice and the following two paragraphs appear in all copies.
  9. '\"
  10. '\" IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
  11. '\" FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
  12. '\" ARISING OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
  13. '\" CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14. '\"
  15. '\" THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  16. '\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  17. '\" AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  18. '\" ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  19. '\" PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20. '\" 
  21. '\" $Header: /user6/ouster/tcl/man/RCS/file.n,v 1.1 93/05/03 17:09:38 ouster Exp $ SPRITE (Berkeley)
  22. '\" 
  23. .so man.macros
  24. .HS file tcl
  25. .BS
  26. '\" Note:  do not modify the .SH NAME line immediately below!
  27. .SH NAME
  28. file \- Manipulate file names and attributes
  29. .SH SYNOPSIS
  30. \fBfile \fIoption\fR \fIname\fR ?\fIarg arg ...\fR?
  31. .BE
  32.  
  33. .SH DESCRIPTION
  34. .PP
  35. This command provides several operations on a file's name or attributes.
  36. \fIName\fR is the name of a file;
  37. .TP
  38. \fBfile \fBsize \fIname\fR
  39. Returns a decimal string giving the size of file \fIname\fR in bytes.
  40. If the file doesn't exist or its size cannot be queried then an
  41. error is generated.
  42. .TP
  43. \fBfile \fBtype \fIname\fR
  44. Returns a string giving the type of the file in decimal.
  45. .TP
  46. \fBfile \fBexists \fIname\fR
  47. Returns 1 if the file exists 0 otherwise
  48. .TP
  49. \fBfile \fBaccess \fIname\fR
  50. Returns access details of the file as a subset of rwxlRWXL
  51.  - lower case for user access.
  52. .TP
  53. \fBfile \fBfull \fIname\fR
  54. Returns the canonicalized version of the file name.
  55.  
  56. .SH KEYWORDS
  57. attributes, directory, file, name
  58.