• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
      • Io
      • Defttag
      • Sys-call
      • Save-exec
      • Quicklisp
      • Oslib
        • File-types
        • Argv
        • Copy
        • Catpath
        • Universal-time
        • Ls
        • Basename
        • Tempfile
        • Dirname
        • Copy!
        • Mkdir
        • Ls-files
        • Lisp-version
        • Rmtree
        • Ls-subdirs
        • Lisp-type
        • Date
        • Getpid
        • Basenames
        • Dirnames
        • Ls-subdirs!
        • Ls-files!
        • Dirname!
        • Basename!
        • Catpaths
        • Mkdir!
        • Ls!
        • Rmtree!
          • Remove-nonstrings
        • Std/io
        • Bridge
        • Clex
        • Tshell
        • Unsound-eval
        • Hacker
        • Startup-banner
        • Command-line
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Oslib

    Rmtree!

    Recursively delete files, like the shell command rm -rf, causing a hard error on any failure.

    Signature
    (rmtree! path &key (state 'state)) → state
    Arguments
    path — Guard (stringp path).

    Definitions and Theorems

    Function: rmtree!-fn

    (defun rmtree!-fn (path state)
           (declare (xargs :stobjs (state)))
           (declare (xargs :guard (stringp path)))
           (let ((__function__ 'rmtree!))
                (declare (ignorable __function__))
                (b* (((mv successp state) (rmtree path))
                     ((unless successp)
                      (raise "Error removing ~s0." path)
                      state))
                    state)))