Commit graph

138 commits

Author SHA1 Message Date
Chris Apers
d224f5a6ce Updated palmos FS based on lastest changes to the base class
svn-id: r22867
2006-06-03 11:21:39 +00:00
Joost Peters
69b5d6fa3d fix PSPFilesystemNode::parent() + some minor cleanup
svn-id: r22727
2006-05-28 22:02:38 +00:00
Joost Peters
8c1d71851a make getNodeForPath() use the proper PSPFilesystemNode ctor (and remove the old, now unused, one).
svn-id: r22726
2006-05-28 21:35:35 +00:00
Joost Peters
91cd652f1d move psp_fs.cpp from backends/psp/ to backends/fs/psp/
svn-id: r22657
2006-05-26 10:46:52 +00:00
Travis Howell
1403a3511e Add code for get current directory
svn-id: r22437
2006-05-13 11:18:52 +00:00
Travis Howell
1124fa8d90 Get current directory via a path of '.'
svn-id: r22435
2006-05-13 10:42:21 +00:00
Max Horn
3623a94927 Added the new AbstractFilesystemNode::getCurrentDirectory() method. Also changed the semantics of the FilesystemNode constructors (see also the relevant doxygen comments for explanations). This also fixes bug #1485941.
svn-id: r22424
2006-05-12 21:41:54 +00:00
Max Horn
ed339aa771 Updated some comments
svn-id: r22422
2006-05-12 21:11:37 +00:00
Torbjörn Andersson
30c0bd63bc Fixed bug #1483450. Apparently, S_ISDIR() is undefined if stat() fails. The
change to the POSIXFilesystemNode constructor is the one that matters to this
bug. The changes to listDir() are made from paranoia.

svn-id: r22382
2006-05-08 04:48:40 +00:00
Max Horn
b2d4cd6a35 Paranoia
svn-id: r22379
2006-05-07 19:41:56 +00:00
Travis Howell
84c99c8242 Revert the last change, since AbstractFilesystemNode::child() handles files and directories
svn-id: r22319
2006-05-03 21:53:38 +00:00
Max Horn
05f6adbbd9 Removed FilesystemNode::isValid (leaving it up to the porters to decide whether to remove their isValid code or not)
svn-id: r22317
2006-05-03 20:49:33 +00:00
Max Horn
d016c353c5 Changed FilesystemNode::listDir to return a bool indicating its success (or failure)
svn-id: r22315
2006-05-03 20:43:26 +00:00
Travis Howell
e4e7ba1d7a Make sure AbstractFilesystemNode::child() only returns a directory in Windows
svn-id: r22306
2006-05-03 13:06:22 +00:00
Max Horn
31444d3d35 Some doxygen comment cleanup for (Abstract)FilesystemNode
svn-id: r22304
2006-05-03 11:42:50 +00:00
Max Horn
fea36d0112 Disabled evil getcwd hack in POSIXFilesystemNode
svn-id: r22302
2006-05-03 11:36:07 +00:00
Max Horn
9c1fc02328 Got rid of AbstractFilesystemNode::wrap (begone, evil hack)
svn-id: r22300
2006-05-03 11:13:21 +00:00
Max Horn
8c452daac2 Moved static methods getRoot / getNodeForPath from class FilesystemNode to class AbstractFilesystemNode
svn-id: r22298
2006-05-03 10:19:05 +00:00
Max Horn
d404b6150a Started to separate AbstractFilesystemNode from FilesystemNode
svn-id: r22297
2006-05-03 10:14:05 +00:00
Marcus Comstedt
5468059d44 Removed compilation error.
svn-id: r22282
2006-05-02 22:27:24 +00:00
Max Horn
dbe1c50bc9 Added a missing '*' (which marks the comment as being one doxygen should process)
svn-id: r22268
2006-05-01 22:04:13 +00:00
Max Horn
e4a7de9d75 Patch #1479919 (AmigaOS maintaining)
svn-id: r22267
2006-05-01 21:53:31 +00:00
Lars Persson
49dd540213 _pseudoRoot was not intialized properly
svn-id: r22261
2006-05-01 15:36:54 +00:00
Lars Persson
492929ae53 Updated symbian-fs backend and cleanup
svn-id: r22260
2006-05-01 14:20:02 +00:00
Travis Howell
7b7d290675 Add windows code for AbstractFilesystemNode::child()
svn-id: r22253
2006-05-01 08:24:57 +00:00
Max Horn
8300d1d2a9 Added new AbstractFilesystemNode::child() resp. FilesystemNode::getChild() methods
svn-id: r22249
2006-04-30 22:52:10 +00:00
Travis Howell
c1572b2dbd _isPseudoRoot should be always false, in WindowsFilesystemNode(const String &path)
svn-id: r22195
2006-04-27 23:16:45 +00:00
Travis Howell
e163be131c Revert kListAllNoRoot addition to listdir(), the uninitialized _isPseudoRoot in windows filesys backend was real cause of problem.
svn-id: r22194
2006-04-27 23:14:54 +00:00
Max Horn
cf13cf3a70 I still don't know whether this is the correct fix for WindowsFilesystemNode, but at least with it, one definite and serious bug in the code (using an uninitialised variable) has been fixed, the end result hardly will be worse
svn-id: r22192
2006-04-27 17:21:33 +00:00
Max Horn
307f4e387b Fixed getNodeForPath on systems using POSIXFilesystemNode to again correctly check whether the given path exists, and whether it points to a directory
svn-id: r22097
2006-04-23 12:29:43 +00:00
Eugene Sandulenko
065dcf5653 Part of patch #1467193: "AmigaOS changes":
- Filesystem errors are now more detailed
- casting problems are hopefully gone
- some comments added in amigaos4-fs.cpp

svn-id: r21861
2006-04-14 01:06:08 +00:00
Chris Apers
4f28027c55 Fixed FS support based on lastest changes to the base fs class
svn-id: r21801
2006-04-11 18:13:04 +00:00
Max Horn
8271273cb5 Fallback to using stat() if readdir returns DT_UNKNOWN (replacing the AMD64 hack)
svn-id: r21767
2006-04-10 19:26:40 +00:00
Johannes Schickel
df1bc871f1 Forces usage of SYSTEM_NOT_SUPPORTING_D_TYPE on amd64 systems. (read comment for more information)
svn-id: r21739
2006-04-09 23:30:16 +00:00
Max Horn
4a8c9c323d AmigaOS4 changes from tracker #1416370
svn-id: r21691
2006-04-08 12:39:27 +00:00
Max Horn
67fda4ece5 Cache the root node (cause a major speedup on OSX, since by far the slowes part in the FS code over here is the getcwd call in getRoot() )
svn-id: r21667
2006-04-07 11:47:58 +00:00
Max Horn
2d10d1960e Use full path qualifiers in #include statements (exception: engines/ can be ommited, at least for now)
svn-id: r21620
2006-04-05 00:18:22 +00:00
Max Horn
bec09d3094 Turned FSList::sort into a generic function which can be applied to anything which implements comparable iterators (like Array, List, or plain C arrays)
svn-id: r21617
2006-04-04 23:55:47 +00:00
Eugene Sandulenko
66d8b85463 Allow symlinks to directories for FS;es with D_TYPE support.
svn-id: r21616
2006-04-04 23:52:56 +00:00
Eugene Sandulenko
004a39b3af Symlinks are also valid files
svn-id: r21615
2006-04-04 23:44:27 +00:00
Travis Howell
194945f2a1 Rename variable in FSList::sort() to avoid conflict with system defines
svn-id: r21612
2006-04-04 23:26:11 +00:00
Max Horn
ac9203415e Some more FS code cleanup
svn-id: r21600
2006-04-04 21:03:17 +00:00
Max Horn
ca6d345220 Possible bug in the Symbian FS code?
svn-id: r21599
2006-04-04 21:02:44 +00:00
Max Horn
e366ed75da oops
svn-id: r21598
2006-04-04 21:01:26 +00:00
Max Horn
112ba72222 Removing more pseudo copy constructors in favor of the standard copy constructor (gee, everybody is copying my bad code, it seems ;-)
svn-id: r21597
2006-04-04 20:54:55 +00:00
Max Horn
bca4dd001f Rewrote sort code to use iterators (means it can be used with any container now, in theory at least)
svn-id: r21596
2006-04-04 20:49:26 +00:00
Max Horn
ebeded36a1 Added comment on why we use getcwd in POSIXFilesystemNode at all
svn-id: r21582
2006-04-03 22:06:42 +00:00
Max Horn
4226aa761d Fix AbstractFilesystemNode::wrap to not call (indirectly) getRoot, just to throw away the result immediately again (which (a) caused a slowdown and (b) a leak, both fixed now)
svn-id: r21581
2006-04-03 21:54:26 +00:00
Max Horn
5595ec5680 Various changes to POSIXFilesystemNode:
- Removed pseudo copy constructor, use the automatically generated one instead.
- Do not always call stat() whenever creating a POSIXFilesystemNode from a path.
- Use lastPathComponent in POSIXFilesystemNode(path) constructor.
- Some further cleanup.

svn-id: r21580
2006-04-03 21:18:24 +00:00
Travis Howell
a98aea6efd Add kListAllNoRoot type to listDir() to handle recent file class changes, on file system backends which use _isPseudoRoot
svn-id: r21449
2006-03-25 10:39:05 +00:00