Commit Graph

146 Commits

Author SHA1 Message Date
Peter Annema
c552abb51a Bug 484505: nsLocalFileUnix::Remove(PR_TRUE) shouldn't ever follow symlinks. r=joshmoz, sr=bsmedberg 2009-04-07 02:20:05 -07:00
Robert O'Callahan
f4aea6aa03 Bug 482942. Tests for nsILocalFile implementations. Also changes nsLocalFileUnix::MoveTo to update the object to refer to the destination, matching other platforms' behaviour. r=bsmedberg
--HG--
rename : xpcom/tests/nsIFileTest.cpp => xpcom/tests/TestFile.cpp
2009-03-24 13:44:37 +13:00
Robert O'Callahan
fba4c1c3ce Bug 482942. Implement nsILocalFile::DELETE_ON_CLOSE. r=bsmedberg 2009-03-20 09:56:05 +13:00
Josh Aas
05e8caa7d0 Don't incorrectly change permissions on link target in SetPermissionsOfLink in unix fs code. Just don't do anything for changes targetting links. b=457487 r=smichaud sr=dougt 2008-10-07 21:26:41 -04:00
Josh Aas
39fa2b5f9e Get rid of fundamentally flawed UNIX stat cache. b=456435 r=smichaud sr=dougt 2008-09-30 02:06:18 -04:00
Mike Hommey
09052f844e Bug 278738 – file:// directory not shown containing a file larger than 2GB. r=bsmedberg 2008-08-06 13:09:44 +02:00
reed@reedloden.com
466b0b1204 Bug 414901 - "Back out scriptable IO" [p=neil@mozilla.com (Neil Deakin) r+sr=bsmedberg a1.9b3=beltzner] 2008-02-01 18:07:49 -08:00
reed@reedloden.com
e599e0db22 Back out the back out from bug 414901 until bug 415218 is fixed, or else we'll have very broken nightlies. :( 2008-02-01 00:51:29 -08:00
enndeakin@sympatico.ca
a425bb001a Bug 414901, back out scriptable IO api, r+sr=bsmedberg,a=beltzner 2008-01-31 11:18:07 -08:00
reed@reedloden.com
90f7bad0e6 Bug 391980 - "New Download manager automatically associates all types of files including folders with one file type" [p=ventnor.bugzilla@yahoo.com.au (Michael Ventnor) r=bsmedberg a=blocking-firefox3+] 2007-11-26 15:55:34 -08:00
enndeakin@sympatico.ca
8efc7f8e46 Bug 380813, improve scriptable io, and give file objects class info, meant to check this in a while ago, r=mfinkle,bsmedberg,sr=bsmedberg 2007-07-25 09:53:37 -07:00
alfred.peng%sun.com
80b213d02e Bug 351950. nsLocalFileUnix has "access"(system call) problem on Solaris.
r+sr=dougt.
2006-12-06 03:58:48 +00:00
joshmoz%gmail.com
e8b317b9f3 Since some platforms do string operations within local file ::Load, we shouldn't declare that objects being created/destroyed from static ctor/dtor is not legal throughout the entire ::Load function. That only needs to be true around the actual PR_LoadLibrary calls. Fixing this stops the ridiculous amount of warning output that we get from every debug mac build. Also removing unused old mac local file impls. b=326837 r=bsmedberg 2006-11-14 22:06:00 +00:00
timeless%mozdev.org
4ac05d33bb Bug 352573 nsLocalFile::CopyDirectoryTo uses oldPerms uninitialized
r=dougt
2006-09-16 23:53:48 +00:00
benjamin%smedbergs.us
71da471b8c Reverting bug 326925 because of a 6.5% Ts increase, even in static builds. 2006-04-13 17:24:12 +00:00
benjamin%smedbergs.us
0b70a74f81 Bug 326925 - components should be loaded with RLTD_NOW, r=darin - This is an experimental checkin that has the potential to affect Ts times on linux machines, especially nonstatic builds. 2006-04-11 13:28:21 +00:00
bsmedberg%covad.net
bc63a700d1 Followup to bug 316732 - impls actually have to QI to the interface (pointed out by bz) 2005-11-18 20:12:46 +00:00
bsmedberg%covad.net
c0af4ff1aa Bug 316732 - Allow for hashing on nsIFile by introducing a new nsIHashable interface and implementing it for the file types r=darin 2005-11-18 14:18:49 +00:00
timeless%mozdev.org
c113ece289 Bug 308573 use if (NS_FAILED(...)) instead of if NS_FAILED(...)
patch by b.jacques@planet.nl r=darin sr=darin
2005-09-15 23:17:17 +00:00
darin%meer.net
b0aabfef01 fixes bug 308369 "Stop copying stat cache when cloning nsIFile instances" r=josh sr=dougt 2005-09-13 22:08:52 +00:00
ben%bengoodger.com
c7791f3f2c fix build bustage - use comptr to delete obj 2005-04-23 02:08:12 +00:00
ben%bengoodger.com
d5b6769604 291177 - need interface for enumerating directories, implement nsIDirectoryEnumerator with close() method to free system resources after enumeration complete - used incorrect checkin comment for previous checkin which has the meat of the change! r+sr=darin a=brendan 2005-04-23 01:41:42 +00:00
ben%bengoodger.com
b9725a8b1a 286034 - allow extensions to be installed/uninstalled by simply adding/removing their directories... r=bsmedberg, sr=darin, a=brendan 2005-04-23 01:39:51 +00:00
cbiesinger%web.de
cb925c9f7d fixing bustage 2005-02-20 14:28:07 +00:00
cbiesinger%web.de
f56106d36a Bug 280351 don't assert when a relative path is passed to
nsLocalFileUnix::InitWithPath
r=dougt sr=darin
2005-02-20 14:05:46 +00:00
timeless%mozdev.org
219d7e6374 Bug 169506 nsLocalFileUnix have problems with BeOS. IsExecutable()...
patch by thesuckiestemail@yahoo.se r=sergei_d moa=dougt
2005-01-30 08:55:16 +00:00
roc+%cs.cmu.edu
0e3ff503fb Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin 2004-05-22 22:15:22 +00:00
bzbarsky%mit.edu
62a5127738 Relanding, since backing out did not fix orange. Bug 232691. 2004-05-22 20:02:43 +00:00
bzbarsky%mit.edu
7f1e54b18d Backing out to attempt to fix Mac orange. Bug 232691 2004-05-22 19:26:52 +00:00
bzbarsky%mit.edu
abcad1dc39 Convert users of nsC?String(), nsC?AutoString(), and NS_LITERAL_C?STRING("") to
using EmptyC?String instead.  Bug 232691, patch by Charles Fenwick
<clf03f@garnet.acns.fsu.edu>, r+sr=bzbarsky
2004-05-22 17:04:53 +00:00
gerv%gerv.net
31625ba2b1 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
cbiesinger%web.de
0b005761a9 backing out 240192 patch 2004-04-16 20:10:47 +00:00
cbiesinger%web.de
03c30951ad bug 240192, nsLocalFileUnix doesn't work with files larger than 2 GB
r+sr=darin
2004-04-16 19:01:58 +00:00
bryner%brianryner.com
3e2d90ecb7 fixing hpux bustage, bug 239465, r=dbaron 2004-04-02 23:48:18 +00:00
bryner%brianryner.com
bd24b78f8d Fixing hpux bustage. r=dbaron. 2004-04-01 23:13:25 +00:00
darin%meer.net
c380c59f65 landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin 2004-02-28 22:34:07 +00:00
bryner%brianryner.com
0c7c3a2ff3 Bug 229875 - eliminate unnecssary public/virtual destructors. This patch changes all refcounted classes under xpcom/, which aren't inherited from or used on the stack, to have private, nonvirtual destructors. r=dougt, sr=dbaron. 2004-01-15 06:14:18 +00:00
cbiesinger%web.de
f1d3381adb Bug 183871
Crash on "Show hidden files and directories" [@ nsFileView::SetDirectory(nsIFile*) ]
fix: don't let files be initialized with relative paths.
also fix the directory service to not do that.

r=dougt sr=bzbarsky
2003-12-25 22:05:01 +00:00
dwitte%stanford.edu
9ae54e162c Bug 122892: nsLocalFile::Clone should preserve stat info.
make nsLocalFile* impls use copy constructors for their nsIFile::Clone methods.
This avoids unnecessary |stat| calls inherent in using NS_NewNativeLocalFile.

b=122892, r=dougt, sr=darin, with many thanks to biesi & mkaply for testing on other
plats.
2003-07-18 22:14:16 +00:00
caillon%returnzero.com
4cc64cee34 Bug 209852. Remove |dont_QueryInterface|.
r=dbaron, sr=jag
2003-06-21 00:15:41 +00:00
timeless%mozdev.org
4942b03239 Bug 187031 [nsLocalFileWin] nsLocalFile::Remove returns os remove values (-1) as nsresults
r=dougt sr=darin
2003-06-18 23:19:11 +00:00
dbaron%dbaron.org
12a781c511 Make implementations consistent across platforms: ensure IsDirectory and IsFile return false even when the file doesn't exist (and they return an nsresult error status). b=187014 r=dougt sr=alecf 2003-01-13 23:17:49 +00:00
dbaron%dbaron.org
b9083989bb Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 23:19:20 +00:00
arougthopher%lizardland.net
b7836f3da0 Bug#169506
IsExecutable() deos not work for BeOS

BeOS now uses stat() instead of access() for:
IsWritable()
IsReadable()
IsExecutable()

sr=scc
r-dougt,arougthopher
2002-10-05 19:06:28 +00:00
dougt%netscape.com
68faeb5241 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
pete%alphanumerica.com
1985d3f734 b=121489, r=dougt, sr=bzbarsky
Simple fix for nsIFile GetParent to return null when already at the top of the volume
Thanks guys for the speedy review.

--pete
2002-09-07 02:00:31 +00:00
dougt%netscape.com
292b06c6ef Fixes 165561. r=me, sr=darin, by=pete collins 2002-08-29 23:11:20 +00:00
shaver%mozilla.org
fb0d67af5b Bug 76968: expand ~/ into NS_OS_HOME_DIR in nsLocalFileUnix. r=bzbarsky,
sr=blizzard.
2002-06-17 21:03:43 +00:00
darin%netscape.com
7420d70bf9 fixes bug 147333 "Cannot load local files whose names contain
Japanese/Chinese characters" r=bstell sr=brendan a=asa
2002-06-10 18:50:11 +00:00
darin%netscape.com
838fb89c78 freezing nsIFile/nsILocalFile API (b=129279)
r=dougt sr=alecf
2002-05-13 22:55:29 +00:00