Re: Irritating behavior when creating a new file

Le lundi 15 juin 2009 à 07:57 -0700, Cay Horstmann a écrit :
> Ever so often, I get bitten by the following behavior--this is on Ubuntu.
> 
> 1) File->New->New Document
> 2) In the resulting dialog, click on the folder icon
> 3) I select the directory, and then I accidentally add the name of the 
> file that I would like to create.
> 4) Click Open
> 5) I see in horror that Amaya now intends to open 
> /home/cay/somedirectory/mynewfile.html/New.html
> 6) I hit Cancel
> 7) I start from scratch, File->New->New Document
> 8) I am now VERY CAREFUL not to type in the file in the file chooser, 
> but only in the text field in the first dialog
> 9) Amaya produces a confusing message that it cannot create 
> /home/cay/somedirectory/mynewfile.html
> 
> You see, in step 3 or 4, it has already created the directory 
> /home/cay/somedirectory/mynewfile.html/, and so it really cannot create 
> that file.
> 
> PLEASE make it so that it doesn't create directories with extension .html.

Amaya uses the file manager of the platform to get the directory where
the file has to be created. The directory mynewfile.html is created by
the file manager.
To solve your problem, Amaya detects that mynewfile.html is a file name
and not a directory name. It removes the directory and creates a file
instead.

> 
> Thanks,
> 
> Cay
> 
-- 
Irene Vatton <Irene.Vatton@inria.fr>
INRIA

Received on Monday, 22 June 2009 07:41:22 UTC