problem renaming/deleting files on other 'volumes' (OSX)
Frank D. Engel, Jr.
fde101 at fjrhome.net
Wed Mar 9 18:19:18 CST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Do you also have write permission to the directory *containing* the
file(s) and/or folder(s) you are trying to rename and/or delete?
Even if you are the owner of the containing directory, make sure you
have write permission (if you are the owner you can give this to
yourself), since you need that in order to rename/delete contained
Think of it this way (UNIX, and thus OS X, does):
Since the 'directory' is essentially a 'list' of files and file
equivalents (directories, named pipes, "special files" representing
devices, etc.), the contained items are separate entities, but the
*name* of the item is stored in the directory itself, meaning that to
change the name you must be able to change the directory.
In UNIX (and thus in OS X if using a UFS file system, the permissions
work the same if using HFS), it is possible for one file to be pointed
to by multiple directory entries; each directory entry pointing to the
file is called a "hard link," and the file maintains a count of how
many hard links point to it. The file is deleted when that count
reaches zero. So to delete a file, you delete the directory entry
pointing to it, which means modifying the directory.
On Mar 9, 2005, at 5:58 PM, Sarah Reichelt wrote:
> Hi Terry,
> This is probably a stupid question, but are you sure the file path is
> If the drive is a networked drive, then the path has to be prefixed by
> "/Volumes/". This may also be true for a directly connected non-boot
> Have you tried getting "the result" after the delete command? That
> might give a clue, especially if you use something like:
> delete file myFilePath
> if the result is not empty then answer error "Can't delete file " &
> myFilePath & cr & the result
> On 10/03/2005, at 8:50 AM, Terry Judd wrote:
>> I've run into a problem where I am frequently unable to rename or
>> delete a file(s) on a volume other than my boot drive from within Rev
>> - this is despite 'me' being the owner of the target files and
>> folders. If I transfer the same files to my boot drive then all works
>> as advertised.
>> Does anyone have any idea why I might be seeing this and if there is
>> a remedy??
>> Rev 2.5, Mac OSX 10.3.8
> use-revolution mailing list
> use-revolution at lists.runrev.com
Frank D. Engel, Jr. <fde101 at fjrhome.net>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten
Son, that whosoever believeth in him should not perish, but have
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
-----END PGP SIGNATURE-----
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
More information about the use-livecode