1fileutil::magic::filetype(n)    file utilities    fileutil::magic::filetype(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       fileutil::magic::filetype  - Procedures implementing file-type recogni‐
9       tion
10

SYNOPSIS

12       package require Tcl  8.4
13
14       package require fileutil::magic::filetype  ?1.0.2?
15
16       ::fileutil::magic::filetype filename
17
18_________________________________________________________________
19

DESCRIPTION

21       This package provides a command for the recognition of  file  types  in
22       pure Tcl.
23
24       The  core  part  of the recognizer was generated from a "magic(5)" file
25       containing the checks to perform to  recognize  files,  and  associated
26       file-types.
27
28       Beware!  This  recognizer is large, about 276 Kilobyte of generated Tcl
29       code.
30
31       ::fileutil::magic::filetype filename
32              This command is similar to the command fileutil::fileType.
33
34              The output of the command for the specified  file  is  a  string
35              describing the type of the file.
36
37              This  list  will  be empty if the type of the file is not recog‐
38              nized.
39

REFERENCES

41       [1]    File(1) sources [ftp://ftp.astron.com/pub/file/] This site  con‐
42              tains  the  current  sources for the file command, including the
43              magic definitions used by it. The latter were used by us to gen‐
44              erate this recognizer.
45

BUGS, IDEAS, FEEDBACK

47       This  document,  and the package it describes, will undoubtedly contain
48       bugs and other problems.  Please report such in the  category  fileutil
49       ::    magic    of    the    Tcllib    SF    Trackers    [http://source
50       forge.net/tracker/?group_id=12883].  Please also report any  ideas  for
51       enhancements you may have for either package and/or documentation.
52

SEE ALSO

54       file(1), fileutil, magic(5)
55

KEYWORDS

57       file recognition, file type, file utilities, type
58
59
60
61fumagic                              1.0.2        fileutil::magic::filetype(n)
Impressum