s c h e m a t i c s : c o o k b o o k
/ Cookbook.FileDeletingAFile
Edit
|
Attach
|
Ref'd By
|
Printable
|
More
|
Advanced Search
| Full Text
Topic Name
This Web
WebHome
WebChanges
TOC
(
with recipes
)
NewRecipe
WebTopicList
WebStatistics
Other Webs
Chicken
Cookbook
Erlang
Know
Main
Plugins
Sandbox
Scm
TWiki
Schematics
Schematics Home
Sourceforge Page
SchemeWiki.org
Original Cookbook
RSS
Scheme Links
Schemers.org
Scheme FAQ
R5RS
SRFIs
Scheme Cross Reference
PLT Scheme
SISC
Scheme48
SCM
MIT Scheme
scsh
JScheme
Kawa
Chicken
Guile
Bigloo
Tiny
Gambit
LispMe
Gauche
Chez
Lambda the Ultimate
TWiki.org
Deleting a File
Problem
You want to delete a file.
Solution
Use plt scheme's standar function
delete-file
:
Discussion
(
delete-file
path
)
deletes the file with pathname
path
if it exists, returning void if a file was deleted successfully, otherwise the
exn:i/o:filesystem
exception is raised. If
path
is a link, the link is deleted rather than the destination of the link.
Comments about this recipe
Contributors
--
IvanHernandez
- 03 Jun 2004
CookbookForm
TopicType
:
Recipe
ParentTopic
:
FileRecipes
TopicOrder
:
999
Current Rev: r1.2 - 25 Jun 2004 - 11:24 GMT -
NoelWelsh
, Revision History:
Diffs
|
r1.3
|
>
| r1.2 |
>
|
r1.1
Copyright © 2004 by the contributing authors. All material on the Schematics Cookbook web site is the property of the contributing authors.
The copyright for certain compilations of material taken from this website is held by the
SchematicsEditorsGroup
- see
ContributorAgreement
&
LGPL
.
Other than such compilations, this material can be redistributed and/or modified under the terms of the GNU Lesser General Public License (
LGPL
), version 2.1, as published by the Free Software Foundation.
Ideas, requests, problems regarding Schematics Cookbook?
Send
feedback.
/ You are Main.guest