Creating a hidden file in Common Lisp

143 Views Asked by At

Since hidden files on a Unix platform simply start with a period, it is trivial to create one using Common Lisp. Hidden files on Windows machines are defined differently. They have a file attribute that indicates whether they are hidden. How can one create these type of files using Common Lisp? I'm using Allegro CL on Windows.

1

There are 1 best solutions below

0
On BEST ANSWER

The ANSI CL standard offers no such functionality. Your vendor might provide it though.

How about file-hidden-p:

(setf (file-hidden-p "my-file") t)

PS. Note that I have not used Allegro for over 15 years. The information above is from Google:

  1. search for allegro lisp file attribute
  2. first hit
  3. click on PermutedIndex
  4. click on A and find file-attributes
  5. read the doc and see file-hidden-p

Still, as I said before - do not hesitate to ask ;-)