Synopsis:

info files [{filename|*} [all|ctime|brkpts|mtime|sha1|size|stat]]

Show information about the current file. If no filename is given and the program is running, then the current file associated with the current stack entry is used. Giving . has the same effect.

* gives a list of all files we know about.

Sub-options which can be shown about a file are:

  • brkpts — Line numbers where there are statement boundaries. These lines can be used in breakpoint commands.

  • ctime — File creation time

  • time — File modification time

  • sha1 — A SHA1 hash of the source text. This may be useful in comparing source code.

  • size — The number of lines in the file.

  • statstat() information

  • all — All of the above information.

If no sub-options are given, size mtime sha1 are assumed.

Examples:

info files      # Show "size mtime sha1" information about current file
info files .    # same as above
info files . brkpts      # show the number of lines in the current file
info files . brkpts size # above plus file size
info files *    # Give a list of files we know about