pavlov%netscape.com
33ce2d4e90
changes to let us build on MacOS X
2000-03-11 03:08:04 +00:00
sfraser%netscape.com
3176f02d0f
Test that the filespec has been initialized, before using it to delete entire directory trees. Blocker. r=Ben_Goodger, a=leaf
2000-02-03 20:49:40 +00:00
fur%netscape.com
9b088cf1a4
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
8535dda53e
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
4b0ca9d0cd
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
af96133451
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
sfraser%netscape.com
5b71ad69f3
Fix for bug 15749; passing null strings to nsFileSpec routines was doing bad things, like strlen(NULL). r=dougt
1999-10-07 20:57:21 +00:00
rjc%netscape.com
a8b61ee726
Fix bug # 15135: when creating a nsFileURL, don't resolve aliases on Mac... just point to the file whether its an alias or not. Review: dougt@netscape.com
1999-09-30 06:41:33 +00:00
waterson%netscape.com
638ad511fc
Make nsFileSpecMac tough enough to deal with a Unix-style path with two or more forward slashes that are right next to each other; e.g., foo//bar/baz.html. Previously, it would convert this to foo::bar:baz.html, which is the Unix equivalent of foo/../bar/baz.html. Oops. Anyway, this keeps Mac from crashing on startup.
1999-09-17 07:03:09 +00:00
dveditz%netscape.com
08b5c219f9
hoping this fixes dougt's bustage
1999-09-10 20:58:46 +00:00
dougt%netscape.com
82c52d63e8
changing GetDiskSpaceAvailable to return a signed 64 bit value
1999-09-10 20:03:56 +00:00
dougt%netscape.com
d8fcfee5c9
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
bruce%cybersight.com
ab0cb7d279
MacFileHelpers::EncodeMacPath() returns the result of an nsEscape() call, so all callers must nsCRT::free() the result instead of using delete[].
1999-09-04 17:09:06 +00:00
beard%netscape.com
9fe2e5a81b
plugged a memory leak in GetCString().
1999-08-27 03:47:43 +00:00
dougt%netscape.com
7aa075083f
Adding fix for 6181. It is currently ifdef'ed out. Looking for a mac person to
...
verify.
1999-08-18 02:17:21 +00:00
pinkerton%netscape.com
a595b44378
remove interface and impl of nsFileSpec::ResolveAlias() because it is obsolete.
1999-08-03 04:51:45 +00:00
dougt%netscape.com
69178099d5
Fix for bug 10177 and 10041.
1999-07-26 22:09:42 +00:00
dougt%netscape.com
dd656478bb
duh.
1999-07-21 18:18:09 +00:00
dougt%netscape.com
944676615b
fix for bug: 10260
...
removed warning in nsIFileStream.cpp
1999-07-21 17:56:01 +00:00
beard%netscape.com
a4240fcd41
explicitly include <limits.h> for ULONG_MAX
1999-07-17 02:04:20 +00:00
racham%netscape.com
aba8748b4b
Removing check for mpath in Recursive copy routine
1999-07-06 22:41:42 +00:00
racham%netscape.com
06f1388283
Adding RecursiveCopy interface
1999-07-05 01:39:42 +00:00
ducarroz%netscape.com
ff3613b424
fix for bug 8029. ResolveAlias should not set the nsFileSpe's internal error mError if the file doesn't exist which is a legal state during the creation of an nsFileSpec object.
1999-06-15 02:19:23 +00:00
mcmullen%netscape.com
f90907e656
Alias resolution now happens almost any time a spec is created from a non-spec. Needed to make things work properly.
1999-06-03 01:28:52 +00:00
ducarroz%netscape.com
9c27fc9dec
fix for bug 7329. Deleteting a file that doesn't exist should not invalidate the nsFileSpec.
1999-05-29 21:27:16 +00:00
mcmullen%netscape.com
f1f7a55308
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
31082baedf
Fixed two small problems in Macintosh-only parts of the code.
1999-04-27 02:12:22 +00:00
mcmullen%netscape.com
e5e977358e
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
ef4a73c482
An "oops" correction in the previous checkin.
1999-04-15 02:17:41 +00:00
mcmullen%netscape.com
bc106712df
Support unix paths .. and . in the path conversion routine.
1999-04-15 01:06:55 +00:00
dougt%netscape.com
e4949d344c
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
6cf27d2a67
Bugs #3997 , 3934
1999-03-19 23:09:39 +00:00
mcmullen%netscape.com
296a662cd4
Fixes for bugs #3779,#2784. Member initialization of nsFileURL for windows compiler, escaping of url when made from path or spec, add file:// on macintosh when making a url from a spec. [bugs introduced when, for dp, I changed nsFilePath not to escape]. a=chofmann.
1999-03-16 19:12:51 +00:00
mcmullen%netscape.com
3bb07d2871
Upgrades, bugfixes (including nsFilePath no longer hex escaped). Features (including DiskSpaceAvailable)
1999-03-13 06:38:57 +00:00
mcmullen%netscape.com
eb40f15d6f
Added GetModDate and GetFileSize. Fixed a crash with a strcmp of null.
1999-03-10 21:02:58 +00:00
mcmullen%netscape.com
22a00633c9
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
ccbad16cde
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
beard%netscape.com
280377b201
Fixed += operator, which would only work if you had a file or folder called "G'day" in the input directory.
1999-02-12 00:48:35 +00:00
waterson%netscape.com
febb896a80
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
6ebe2daa2c
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
mcmullen%netscape.com
defd60a0ab
Allow partial paths.
1998-12-24 00:01:32 +00:00
mcmullen%netscape.com
9cdd955cd4
Rewrote the stream stuff to be simple, since Unix build environment cannot even handle ostream and istream. This builds and runs correctly on Linux and Macintosh now.
1998-12-18 23:06:54 +00:00
mcmullen%netscape.com
f2af6b7ae7
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
b6aba71e21
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
pinkerton%netscape.com
b4f7944d24
fix for new universal headers. Don't use PLstringfuncs and add an inline helper to the helper namespace which does the same things.
1998-12-09 01:56:36 +00:00
mcmullen%netscape.com
ffc07f1806
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
97663c5afa
First Checked In.
1998-12-08 02:22:54 +00:00