72 Commits

Author SHA1 Message Date
alecf%netscape.com
eff2f0d65b oops, back out this change, wasn't supposed to land
git-svn-id: svn://10.0.0.236/trunk@114824 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 23:00:11 +00:00
alecf%netscape.com
26792f7cf9 removal lame nsFileSpec operators, bug 100676 r=ccarlen sr=waterson
git-svn-id: svn://10.0.0.236/trunk@111730 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 21:31:19 +00:00
alecf%netscape.com
4844378688 Fix for bug 110371 - remove uconv dependency from nsFileSpec by moving unicode-related routines into mailnews. sr=sspitzer, r=nhotta
git-svn-id: svn://10.0.0.236/trunk@108477 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 15:28:56 +00:00
seawood%netscape.com
4551221bef Landing the rest of the mach-o OSX changes.
Bug #75653 r=cls sr=waterson


git-svn-id: svn://10.0.0.236/trunk@106461 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-27 07:38:18 +00:00
dbaron%fas.harvard.edu
8cfde11cea Bug 69873: remove nsAutoCString. r=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@105247 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-12 02:57:59 +00:00
jaggernaut%netscape.com
51e0dc7a6c Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 08:28:41 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
mkaply%us.ibm.com
d7164c9731 Fix Os/2 bustage
git-svn-id: svn://10.0.0.236/trunk@97201 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-15 03:48:00 +00:00
mkaply%us.ibm.com
0b0abb10e4 #56767
r/a=cls,leaf
Remove XP_PC - use XP_WIN or XP_OS2 explicitly


git-svn-id: svn://10.0.0.236/trunk@82990 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-28 23:27:38 +00:00
dougt%netscape.com
bf7163c089 checked in warren's patch to remove circular memory leak in directory service
removed strcmp'er in favor of atom compares.
added comments to nsFileSpec indicating that it is no longer supported.


git-svn-id: svn://10.0.0.236/trunk@67030 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:48:02 +00:00
ftang%netscape.com
2d7bb61d3f fix nsFileSpec unicode interface .
git-svn-id: svn://10.0.0.236/trunk@66760 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:44:23 +00:00
dbragg%netscape.com
f8c0450ab3 Oops, forgot nsFileSpec.h
git-svn-id: svn://10.0.0.236/trunk@66589 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:59:30 +00:00
pavlov%netscape.com
1fdd348954 changes to let us build on MacOS X
git-svn-id: svn://10.0.0.236/trunk@62619 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 03:08:04 +00:00
mkaply%us.ibm.com
c7e80aa6ea # 25555
r= dougt@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef


git-svn-id: svn://10.0.0.236/trunk@61894 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 21:27:02 +00:00
rjc%netscape.com
04cfa0ed7b Fix PDT+ bug # 6770: be able to get filenames from the file system in the platform native charset.
Patch from m_kato@ga2.so-net.ne.jp
Review: ftang, dougt, and myself.
Approval: jar


git-svn-id: svn://10.0.0.236/trunk@61723 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-26 02:19:34 +00:00
nhotta%netscape.com
d93c3cf8c0 Added a function to return path name in unicode, contributed by m_kato@ga2.so-net.ne.jp, edited by nhotta, bug 22863, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@60365 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 01:08:56 +00:00
dougt%netscape.com
802f0584a1 Empowering the world. Bug. 25374, basically we create a directory without
the correct permission.
r=racham&&mozbot.


git-svn-id: svn://10.0.0.236/trunk@59793 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 22:57:37 +00:00
fur%netscape.com
e3d83679ec 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]


git-svn-id: svn://10.0.0.236/trunk@53948 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 01:42:46 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
dveditz%netscape.com
3330477d88 shutting up copious warnings using /W4 on MSVC
git-svn-id: svn://10.0.0.236/trunk@52700 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 07:39:19 +00:00
dveditz%netscape.com
6b0912645b 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


git-svn-id: svn://10.0.0.236/trunk@51333 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:40:39 +00:00
sfraser%netscape.com
8023b08ebc 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.


git-svn-id: svn://10.0.0.236/trunk@50360 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 21:19:06 +00:00
waterson%netscape.com
605693835c #undef CreateDirectory to fix problem where winbase.h #define
CreateDirectory and makes it appear as if nsFileSpec has a
CreateDirectory[A|W] method.


git-svn-id: svn://10.0.0.236/trunk@48487 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 03:09:39 +00:00
dougt%netscape.com
4b0f769454 changing GetDiskSpaceAvailable to return a signed 64 bit value
git-svn-id: svn://10.0.0.236/trunk@46835 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 20:03:56 +00:00
dougt%netscape.com
66f1984420 nsFileSpec::GetDiskSpace now returns a PRUint64. (12479)
thanks to Chet Murphy <cmurphy@modelworks.com> for the windows code!


git-svn-id: svn://10.0.0.236/trunk@46590 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:20:35 +00:00
shaver%netscape.com
aff923d924 add IsChildOf, and dougt's relative-path-handling diff
git-svn-id: svn://10.0.0.236/trunk@45975 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 23:44:59 +00:00
dougt%netscape.com
9ce9c8b2b7 Adding fix for 6181. It is currently ifdef'ed out. Looking for a mac person to
verify.


git-svn-id: svn://10.0.0.236/trunk@43448 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:17:21 +00:00
pinkerton%netscape.com
086f5f9900 remove interface and impl of nsFileSpec::ResolveAlias() because it is obsolete.
git-svn-id: svn://10.0.0.236/trunk@41942 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 04:51:45 +00:00
dougt%netscape.com
24830fc232 This fixes a nsDirectoryIterator bug that bliz, seth and I were working on last night.
Approved by cyeh.


git-svn-id: svn://10.0.0.236/trunk@41552 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-29 14:24:47 +00:00
sspitzer%netscape.com
851457b19f fix for #10697. ResolveSymlink() messes with mCurrent, so we need to restore it. Also, make ResolveSymlink() return an absolute file, instead of a relative one.
git-svn-id: svn://10.0.0.236/trunk@41541 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-29 04:31:04 +00:00
dougt%netscape.com
d219f1385e Fix for bug 10177 and 10041.
git-svn-id: svn://10.0.0.236/trunk@41167 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 22:09:42 +00:00
dougt%netscape.com
0e3652a9a5 fix for bug: 10260
removed warning in nsIFileStream.cpp


git-svn-id: svn://10.0.0.236/trunk@40445 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 17:56:01 +00:00
racham%netscape.com
f8eb4fa44c Adding RecursiveCopy interface
git-svn-id: svn://10.0.0.236/trunk@38347 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-05 01:39:42 +00:00
mcafee%netscape.com
b366c7e0ba BeOS changes
git-svn-id: svn://10.0.0.236/trunk@37402 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 10:27:58 +00:00
mcmullen%netscape.com
242ec9344f Fix to #6398 using patch provided by jim_nance@yahoo.com (who does, apparently, yahoo).
git-svn-id: svn://10.0.0.236/trunk@33466 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:40:47 +00:00
mcmullen%netscape.com
dee7faf9fb Alias resolution now happens almost any time a spec is created from a non-spec. Needed to make things work properly.
git-svn-id: svn://10.0.0.236/trunk@33465 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:28:52 +00:00
dp%netscape.com
befa259a88 Landing xpcom20/21 branch.
git-svn-id: svn://10.0.0.236/trunk@32644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 01:38:36 +00:00
mcafee%netscape.com
06560d83f0 Class nsprPath has been renamed to nsNSPRPath; straggler references were being converted with a typedef, this was confusing Solaris, so I'm converting all nsprPath references to the new name, hope that's Ok.
git-svn-id: svn://10.0.0.236/trunk@30910 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 05:34:26 +00:00
mcmullen%netscape.com
3ac0828129 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).
git-svn-id: svn://10.0.0.236/trunk@30800 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 01:18:23 +00:00
mcmullen%netscape.com
7466c2717c Leakage and mismatch of allocate/free methods (patches submitted by Bruce Mitchener). Bug #5140.
git-svn-id: svn://10.0.0.236/trunk@29215 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 19:05:00 +00:00
bruce%cybersight.com
ceebc5fece Fix for a comment.
git-svn-id: svn://10.0.0.236/trunk@29114 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-25 13:31:05 +00:00
scc%netscape.com
dd0f5ff878 removed the non-|const| version of |nsAutoCString::operator const char*| since the const version serves in both |const| and non-|const| situations, and will be ambiguous to many compilers.
git-svn-id: svn://10.0.0.236/trunk@29063 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 18:40:36 +00:00
mcmullen%netscape.com
04fe38e912 Made GetCatInfo method public (XP_MAC only)
git-svn-id: svn://10.0.0.236/trunk@28875 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 17:18:24 +00:00
mcmullen%netscape.com
c0a796a5c4 Oops.
git-svn-id: svn://10.0.0.236/trunk@28290 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 19:31:11 +00:00
dougt%netscape.com
9be6e244a8 Now using PL_* functions in nsprPath()
ifdef'ing the deallocation of nsprPath()


git-svn-id: svn://10.0.0.236/trunk@27582 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 19:39:23 +00:00
mcmullen%netscape.com
babcfaaf62 Fixed two warnings and added a method with a shorter name because of bug in VC++ compiler
git-svn-id: svn://10.0.0.236/trunk@27501 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 01:11:42 +00:00
dougt%netscape.com
3fbcdbf5cc Adding nsprPath class.
Changing comments to reflect the real world.


git-svn-id: svn://10.0.0.236/trunk@26901 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-10 00:27:09 +00:00
mcmullen%netscape.com
6abc04c21a Fixed an illegal preprocessor directive.
git-svn-id: svn://10.0.0.236/trunk@25907 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 20:06:46 +00:00
dougt%netscape.com
61ba04689f Now adjusting the nsFileSpec after a Move().
Also fixing a bug with Rename().  Now it should successfully take
partial pathnames on Unix and Windows.


git-svn-id: svn://10.0.0.236/trunk@24612 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-21 06:22:45 +00:00
mcmullen%netscape.com
a2a3982ee7 Bugs #3997, 3934
git-svn-id: svn://10.0.0.236/trunk@24495 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-19 23:09:39 +00:00