Re: QFileInfo

2009-03-19 Thread Abdelrazak Younes
I am on a trip so replying quickly with my mobile... I agree that the filename clss has become too complicated because of all the corner cases. Still, it has served its purpose and fixed a lot of bugs and portability problems. Coming back to our problem, i think we need a fileName::isSimilarTo() me

Re: QFileInfo

2009-03-18 Thread rgheck
Vincent van Ravesteijn wrote: Jean-Marc Lasgouttes schreef: Vincent van Ravesteijn wrote: And a second disadvantage of the QFileInfo class is that it is very unclear when it accesses the filesystem and how you can avoid that in cases you don't need to. It's a bit difficult to see how it can

Re: QFileInfo

2009-03-18 Thread Vincent van Ravesteijn
Jean-Marc Lasgouttes schreef: Vincent van Ravesteijn wrote: And a second disadvantage of the QFileInfo class is that it is very unclear when it accesses the filesystem and how you can avoid that in cases you don't need to. It's a bit difficult to see how it can be cleaned up. There is a code

Re: QFileInfo

2009-03-18 Thread Jean-Marc Lasgouttes
Vincent van Ravesteijn wrote: And a second disadvantage of the QFileInfo class is that it is very unclear when it accesses the filesystem and how you can avoid that in cases you don't need to. It's a bit difficult to see how it can be cleaned up. There is a code that depends on the Qt version

Re: QFileInfo

2009-03-18 Thread Vincent van Ravesteijn
rgheck schreef: Vincent van Ravesteijn wrote: Anyway, our FileName class is largely based on the QFileInfo class, which is thus not reliable anymore if we just want to compare filenames. If I remember correctly, the reason to use QFileInfo had been to resolve worries about different links tha

Re: QFileInfo

2009-03-18 Thread rgheck
Vincent van Ravesteijn wrote: Anyway, our FileName class is largely based on the QFileInfo class, which is thus not reliable anymore if we just want to compare filenames. If I remember correctly, the reason to use QFileInfo had been to resolve worries about different links that point to the sa