Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 [Files and Directories] Ensure that a file exists

closed
None
5
2010-02-24
2010-02-09
Anonymous
No

This came up in #lisp, and I thought it's the kind of thing that should be on here:

(defun touch (path)
(open path :direction :probe :if-does-not-exist :create))

Discussion

  • John Thingstad
    John Thingstad
    2010-02-09

    • assigned_to: nobody --> jthing
    • status: open --> pending
     
  • John Thingstad
    John Thingstad
    2010-02-09

    I'll do that.
    John

     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed