Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
More inconsistencies with file/directory operations
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
JP Massar  
View profile  
 More options Oct 10 2001, 4:20 pm
Newsgroups: comp.lang.lisp
From: mas...@alum.mit.edu (JP Massar)
Date: Wed, 10 Oct 2001 20:20:56 GMT
Local: Wed, Oct 10 2001 4:20 pm
Subject: More inconsistencies with file/directory operations
Using Windows

(rename-file "C:/Lispcode/foo" "C:/Lispcode/bar")

where foo is a subdirectory of Lispcode

Lispworks allows one to rename the directory using RENAME-FILE as
above.

Allegro does not; RENAME-FILE tells you that the file FOO does not
exist.  (nor does including a terminating '/' work).  The only way
to rename a directory is to use implementation-specific EXCL:
functions to copy the directory and then delete the old one.

Corman Lisp doesn't have a RENAME-FILE function.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Oct 11 2001, 5:30 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.net>
Date: Thu, 11 Oct 2001 09:30:40 GMT
Local: Thurs, Oct 11 2001 5:30 am
Subject: Re: More inconsistencies with file/directory operations
* mas...@alum.mit.edu (JP Massar)
| Allegro does not; RENAME-FILE tells you that the file FOO does not
| exist.  (nor does including a terminating '/' work).  The only way
| to rename a directory is to use implementation-specific EXCL:
| functions to copy the directory and then delete the old one.

  Are you sure the file that holds the directory is not _actually_ called
  something else?  foo.dir or something?  As far as I know, it is fairly
  unique to Unix to have directories that are available in the file system
  as files with exactly the same name as the directory.  But I have made it
  a point of personal pride not to be infected by STDs or Microsoft.

///
--
  My hero, George W. Bush, has taught me how to deal with people.  "Make no
  mistake", he has said about 2500 times in the past three weeks, and those
  who make mistakes now feel his infinite wrath, or was that enduring care?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JP Massar  
View profile  
 More options Oct 11 2001, 12:22 pm
Newsgroups: comp.lang.lisp
From: mas...@alum.mit.edu (JP Massar)
Date: Thu, 11 Oct 2001 16:22:41 GMT
Local: Thurs, Oct 11 2001 12:22 pm
Subject: Re: More inconsistencies with file/directory operations

On Thu, 11 Oct 2001 09:30:40 GMT, Erik Naggum <e...@naggum.net> wrote:
>* mas...@alum.mit.edu (JP Massar)
>| Allegro does not; RENAME-FILE tells you that the file FOO does not
>| exist.  (nor does including a terminating '/' work).  The only way
>| to rename a directory is to use implementation-specific EXCL:
>| functions to copy the directory and then delete the old one.

>  Are you sure the file that holds the directory is not _actually_ called
>  something else?  foo.dir or something?  As far as I know, it is fairly
>  unique to Unix to have directories that are available in the file system
>  as files with exactly the same name as the directory.  But I have made it
>  a point of personal pride not to be infected by STDs or Microsoft.

The Windows API function 'MoveFile' works fine to rename a directory
when you give it the name as shown by a directory listing.

So if it is 'really' called something else the OS is doing a pretty
good job of hiding that fact.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »