fur@netscape.com
76845ceb98
Fix build bustage, maybe. Get rid of unnecessary const
1999-11-19 02:35:02 +00:00
fur@netscape.com
40efdbc477
In support of #8305 (implement cache).
...
Add Truncate() method to nsIFileSpec and implement in nsFileSpecImpl
[Mac Implementation: sdagley, r: sfraser]
[Win implementation: fur, r:rogerl]
[Unix implementation: yixiong.zue@intel.com , r: fur]
1999-11-19 01:42:46 +00:00
dmose@mozilla.org
20621227af
updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
1999-11-06 03:43:54 +00:00
dveditz@netscape.com
8ab781588f
Changing nsFileSpec Copy and Move function names to match their
...
functionality, and also to free up the namespace for a *real* Copy
and Move that allow renaming the leaf name rather than just copying
into different directories (i.e. to make backup files). r=ssu
1999-10-21 00:40:39 +00:00
sfraser@netscape.com
98f4ac7894
Fix for bugs 15795 and 16090 -- fix startup crash which was due to an uninitialized nsFileSpec trashing the stack. Also no longer set mError on CreateDirectory if the dir already exists, prevent += "foo" when mError is set, and add assertions XP to catch calls with NULL strings.
reviewed by dougt and (in part) sspitzer. a=leaf.
1999-10-11 21:19:06 +00:00
dveditz@netscape.com
15d3dc1501
hoping this fixes dougt's bustage
1999-09-10 20:58:46 +00:00
dougt@netscape.com
34b2b3fc5f
changing GetDiskSpaceAvailable to return a signed 64 bit value
1999-09-10 20:03:56 +00:00
dougt@netscape.com
9adbcd8446
nsFileSpec::GetDiskSpace now returns a PRUint64. (12479)
...
thanks to Chet Murphy <cmurphy@modelworks.com > for the windows code!
1999-09-09 19:20:35 +00:00
dougt@netscape.com
298a5b179d
This fixes a nsDirectoryIterator bug that bliz, seth and I were working on last night.
...
Approved by cyeh.
1999-07-29 14:24:47 +00:00
dveditz@netscape.com
86f5ec04f6
fixes VC5 link bustage, but I feel dirty
1999-07-27 00:57:50 +00:00
dougt@netscape.com
2676ba3bb6
Fix for bug 10177 and 10041.
1999-07-26 22:09:42 +00:00
dougt@netscape.com
1860049c71
fix for bug: 10260
...
removed warning in nsIFileStream.cpp
1999-07-21 17:56:01 +00:00
racham@netscape.com
a96c529c7f
Adding RecursiveCopy interface
1999-07-05 01:39:42 +00:00
dougt@netscape.com
c455309137
removing an evil and unneeded delete [].
1999-05-27 22:02:17 +00:00
mcmullen@netscape.com
c31a825071
Assert when nsFileSpec gets a unix path
1999-05-12 00:17:53 +00:00
mcmullen@netscape.com
6505603ecd
Fix nsFileSpec to take native paths in constructors and assignment operators. Fix += to work with relative paths on Macintosh. Remove dependency of nsFileSpec on streams (so that dp can move nsFileSpec).
1999-05-08 01:18:23 +00:00
mcmullen@netscape.com
b06bf31d66
Check for a null path before calling stat() and friends (bug #5576 ). a=chofmann.
1999-05-03 20:29:01 +00:00
mcmullen@netscape.com
d61fce06fb
Patch from Michael Lowe (part of #5473 ) replace true by PR_TRUE
1999-04-26 19:34:39 +00:00
mcmullen@netscape.com
dac1037c11
Leakage and mismatch of allocate/free methods (patches submitted by Bruce Mitchener). Bug #5140 .
1999-04-26 19:05:00 +00:00
mcmullen@netscape.com
e8819f27b2
Oops.
1999-04-20 19:31:11 +00:00
mcmullen@netscape.com
d9544d4571
Correct a problem my last change to GetParent() introduced.
1999-04-20 19:09:22 +00:00
mcmullen@netscape.com
0523a923a8
Fixed GetParent() on windows and unix (was incorrect for directories whose paths end in a separator).
1999-04-19 22:07:42 +00:00
dougt@netscape.com
43b132e126
Make the windows specific code use nsprPath.
1999-04-10 00:30:23 +00:00
dougt@netscape.com
2c7f65f10a
Now adjusting the nsFileSpec after a Move().
...
Also fixing a bug with Rename(). Now it should successfully take
partial pathnames on Unix and Windows.
1999-03-21 06:22:45 +00:00
mcmullen@netscape.com
a9b9bd1efc
Bugs #3997 , 3934
1999-03-19 23:09:39 +00:00
mcmullen@netscape.com
dc6d148cff
Fix a parameter type.
1999-03-13 07:07:33 +00:00
mcmullen@netscape.com
a925bce5fd
Upgrades, bugfixes (including nsFilePath no longer hex escaped). Features (including DiskSpaceAvailable)
1999-03-13 06:38:57 +00:00
mcmullen@netscape.com
615081d918
Added GetModDate and GetFileSize. Fixed a crash with a strcmp of null.
1999-03-10 21:02:58 +00:00
dougt@netscape.com
15eda68abd
No longer shifting windows nsFileSpec's mPath to uppercase.
...
Now comparing without regard to case instead on windows.
Windows nsSpecialSystemDirectory will have all uppercase mPaths.
1999-03-10 20:07:10 +00:00
mcmullen@netscape.com
c60671e622
Turning on dougt's special system directory stuff, and adding it to the Macintosh build. Fixed spurious leading slash on getting leaf name (win and unix). Adding dougt's equality test operator, too. Adding dougt's test code for all the above.
1999-03-09 22:33:36 +00:00
mcmullen@netscape.com
ca0a6d1c26
Fix seek again so it resets eof. Allow ns*FileStream stack-based classes to be closed explicitly. Fix refcounting. Remove "close on destroy" kludge.
1999-02-28 01:36:48 +00:00
dougt@netscape.com
a08d84c4ba
Merging branch BASE_19_FEB_99 to tip. These are extensive changes
...
to nsFileSpec and and nsFileStream. See dougt@netscape.com or
John McMullen for futher information.
1999-02-25 20:49:47 +00:00
waterson@netscape.com
de0080df35
Got Win32-specific stuff up and running. This caused a bit of code-juggling in the Unix and Mac implementations. a=mcmullen.
1999-01-26 23:49:33 +00:00
mcmullen@netscape.com
98ea176213
Fix unused parameter warning.
1999-01-07 02:11:24 +00:00
kipp@netscape.com
188d819bd0
Make it compile on windows
1999-01-07 01:46:22 +00:00
mcmullen@netscape.com
180e117493
Added a directory iterator class. Added canonification and recursive directory creation, and some other handy methods. Eventual goal: replace xp_file.h entirely.
1999-01-06 23:38:21 +00:00
law@netscape.com
88d3db73a7
Minor fix in operator=
1998-12-12 01:28:28 +00:00
mcmullen@netscape.com
afab0fec38
More tweaks.
1998-12-11 03:17:47 +00:00
mcmullen@netscape.com
f352cb8ab6
Some more tweaks to suit various compilers and platforms.
1998-12-11 01:42:04 +00:00
mcmullen@netscape.com
81330acfd9
Trying to make this build on unix gcc compilers, I have removed all references to std::string, using char* instead. This almost made me cry (not just because of all the work I had to do over again).
1998-12-09 08:47:30 +00:00
mcmullen@netscape.com
89ccaecfc7
Tried to make this a little more gcc friendly - created some NS_USING_NAMESPACE/ NS_NAMESPACE ugliness. Sigh.
1998-12-09 05:09:28 +00:00
law@netscape.com
4b340e6ebb
Added Windoze support
1998-12-09 01:04:53 +00:00
mcmullen@netscape.com
35f6ea9e8a
Polished the interfaces, added long comments in the headers.
The next step is checking by Bill Law and Steve Lamm for Win and Unix. Then it's open season.
1998-12-08 22:45:42 +00:00
mcmullen@netscape.com
7c39723790
First Checked In.
1998-12-08 02:15:50 +00:00