According to Mike Nordell <[EMAIL PROTECTED]>: > So what's holding us back from declaring a simple XAP class called > FileSystem that only holds static member functions (as a surrogate for > namespace) with function like > bool isDirectory(const char* pszFsEntry); > > that is implemented in platform dependent XAP .cpp files?
And possible some XAP_File class that serves to reference a file accross AbiWord calls. For example, instead of passing a path to an importer, pass a XAP_File.... That allow abstracting files on OS where path use is discouraged... That class should not be to hard to implement. Hub > > The Win32 MSVC CRT has a _stat function and AFAIK all unices has it (without > the leading underscore), and for the platforms that does not have it... > Well, they can implement it in their platform preferred way. For PDAs > without directories it might be a problem though. :-) > > This could also be the place to put getFileSize, createDirecory and any and > all such filesystem operations. > > Am I nuts? > > /Mike > >
