FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

DISK I/O

Delete a folder


First, I assume that the folder's empty, right?

I've had trouble with this too (even though the folder's empty). Sometimes it works and sometimes it doesn't. The error given by FN DELETE seems to indicate that the folder is "in use"--which means that somebody has created a working directory reference number for it and has not yet disposed of that number. In FutureBasic, the way you "dispose of" a working directory ref. num. is by executing CLOSE FOLDER.
However, that doesn't usually seem to solve the problem, and besides, you can often go directly to the Finder and trash the folder without any problem! (which you couldn't do if it were _really_ "in use.") This indicates that, at least sometimes, the "in use" error is bogus.

I think this is a MacOS problem, rather than an FB problem. It does seem to be related to working directories, so possibly it will go away if you can avoid using working directory ref. numbers to refer to your folders (which can be a pain in the butt, since FB is somewhat oriented toward their use).

Rick


Possibly because you've got a custom icon for that folder that you've overlooked deleting?
There's an invisible file inside of the folder called " Icon" that's invisible which holds the custom icon for that folder. I'm sure you already knew that, though, but it's just a thought.

Terence Jordan


Well, _I_ didn't know that! That's a cool little tidbit of information:
I always wondered just where the custom icon info for folders was saved (since folders don't have a "resource fork")--now I know.

BTW, I did some experimenting and discovered that, even if you _remove_ the custom icon from your folder (via the "Get Info" window), the invisible " Icon" file DOES NOT GET DELETED (at least under MacOS 7.5). So there's a good chance that your folder can have an invisible " Icon" file in it if the folder _ever_ had a custom icon (or if the folder is a _copy_ of another folder that once had a custom icon).

Rick