To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 7589
7588  |  7590
Subject: 
Re: Paths, explicit drive references, and the case of file names (Was: MPD spec)
Newsgroups: 
lugnet.cad.dev, lugnet.cad.dev.org.ldraw
Date: 
Tue, 6 Aug 2002 14:11:01 GMT
Viewed: 
4283 times
  
In lugnet.cad.dev, Jacob Sparre Andersen wrote:

> Tore Eriksson wrote:
> 
> > In lugnet.cad.dev, Steve Bliss writes:
> > 
> > > Should probably also add the following...
> > > 
> > > - paths are allowed, so are explicit drive references.
> 
> I am not sure about explicit drive references. Actually, I
> think we should limit it to _relative_ paths.

I'd prefer we say that local/absolute references are allowed, but
provide guidelines to show that relative paths are usually better -
easier to manage, easier to share, etc.

> We should also decide on a preferred - or maybe even fixed -
> directory name delimiter. I suppose that it should be "\",
> even though Unix and Mac people probably have different
> preferences.

Yes, yes, and I'm guessing yes.

> And what about the case of file names? My MPD splitter
> converts all the file names to lower case before the files
> are created. I suspect that this technically is wrong.

I think you are correct - file name case should be preserved.

> > MPD Workshop cannot handle a reference to a non-existing directory, or
> > rather, it does not create a folder if necessary.
> 
> It is my impression that the MPD splitting _should_ create
> any missing directories.

Here is my list of how software can handle this, in order from least
preferred to most preferred:

- Software doesn't think about paths - it allows them, works fine
  if they alread exist, crash if they don't.
- Software doesn't create new directories - it gives an error
  message if needed directories don't exist.
- Software automatically creates new directories as needed.
- Software prompts the user before creating new directories.
- Software provides options so the user can establish their
  preferences:  never create directories, always create directories,
  prompt before creating.

Steve



Message has 3 Replies:
  Re: Paths, explicit drive references, and the case of file names (Was: MPD spec)
 
(...) why not just say any of the following (':', '/' and '\') can be used as a delimiter, and it doesn't matter which you use - it's up to the program to translate any of those to the correct one for the OS? (...) defenitly! :) Dan (24 years ago, 6-Aug-02, to lugnet.cad.dev, lugnet.cad.dev.org.ldraw)
  Re: Paths, explicit drive references, and the case of file names (Was: MPD spec)
 
(...) I tend to disagree. Given that the whole point of MPD files is to allow LDraw files to be more portable across multiple machines, I think absolute paths should be disallowed. It doesn't make sense to me to allow absolute paths in a file format (...) (24 years ago, 6-Aug-02, to lugnet.cad.dev, lugnet.cad.dev.org.ldraw)
  Re: Paths, explicit drive references, and the case of file names
 
(...) Okay. I have made that an option with the latest edition of my MPD splitter: (URL) Here is my list of how software can handle this, in order from least (...) Except for the option of prompting before creating a directory, I have implemented (...) (24 years ago, 6-Aug-02, to lugnet.cad.dev, lugnet.cad.dev.org.ldraw)  

Message is in Reply To:
  Paths, explicit drive references, and the case of file names (Was: MPD spec)
 
(...) I am not sure about explicit drive references. Actually, I think we should limit it to _relative_ paths. We should also decide on a preferred - or maybe even fixed - directory name delimiter. I suppose that it should be "\", even though Unix (...) (24 years ago, 6-Aug-02, to lugnet.cad.dev, lugnet.cad.dev.org.ldraw)

65 Messages in This Thread:




















Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR