Commit Graph

75 Commits

Author SHA1 Message Date
doursse cc0ca9325e integration of evil in ecore. It's compiling on windows and my ubuntu. The commit is big, please report any problem
SVN revision: 34671
2008-05-26 05:16:34 +00:00
Eric Schuele c48d02e391 Check for null pointer before passing to realpath()
SVN revision: 34285
2008-04-17 02:04:02 +00:00
Mike Frysinger 184812f289 replace a lot of win32 ifdef hacks with autoconf checks
SVN revision: 33616
2008-01-26 05:40:53 +00:00
doursse 8cdab64618 fix linking on Windows, minor formatting and remove useless windows.h include
SVN revision: 32207
2007-10-29 20:02:08 +00:00
doursse 251f9a2f62 Windows port: mkdir is obsolete with vc++, use _mkdir instead. Define macros for realpath and mkdir
SVN revision: 31771
2007-09-21 17:06:24 +00:00
doursse 21339321e9 add a readlink equivalent for Windows
SVN revision: 31663
2007-09-09 11:05:02 +00:00
doursse a22ebcafac port ecore_file to Windows
SVN revision: 31662
2007-09-09 10:26:37 +00:00
Peter Wehrfritz 021597ec25 more docs
SVN revision: 31237
2007-08-10 16:01:59 +00:00
Peter Wehrfritz 32a28bf832 add some docs
SVN revision: 31236
2007-08-10 14:15:14 +00:00
Davide Andreoli 8ea12a434f Ecore_File documented with doxy tags
SVN revision: 31198
2007-08-06 20:00:28 +00:00
Peter Wehrfritz cd20fbc9d9 *API BREAK* see the discussion in the mailing list. misc and e_modules will follow
SVN revision: 30970
2007-07-25 17:01:04 +00:00
Eric Schuele 5a88f37fe1 oops.
SVN revision: 30260
2007-06-05 22:12:10 +00:00
Eric Schuele 91ced99888 FreeBSD has large file support out of the box
SVN revision: 30259
2007-06-05 21:52:15 +00:00
Carsten Haitzler f31429ba3d use features.h
SVN revision: 30204
2007-06-03 03:48:18 +00:00
Carsten Haitzler 0edf0118d4 dont actually need to #define this - features.h does ti for us
SVN revision: 30203
2007-06-03 03:46:35 +00:00
Carsten Haitzler 7c8c33371d make ecore_file able to handle large files.
SVN revision: 30194
2007-06-02 16:33:43 +00:00
Carsten Haitzler db70aa52ac return 0 if file cp only partially succeeded
SVN revision: 29684
2007-04-22 23:07:48 +00:00
Sebastian Dransfeld 928faa73f5 Check for NULL argument.
SVN revision: 29110
2007-03-25 12:05:48 +00:00
Sebastian Dransfeld eeecc60efc Remove no longer used variable.
SVN revision: 28694
2007-03-13 16:11:48 +00:00
Carsten Haitzler 66954e5331 fix realpath
SVN revision: 28678
2007-03-13 02:28:18 +00:00
Peter Wehrfritz 370a06b3c9 sort the list in the same way ls actually does: using strcoll,
you want to add the line setlocale(LC_COLLATE, ""); or setlocale(LC_ALL, "");
to your application if you not already have


SVN revision: 28511
2007-03-01 16:17:04 +00:00
Carsten Haitzler e848677587 make mv copy if it is a regular file not on same fs.
SVN revision: 28245
2007-02-04 13:14:16 +00:00
Peter Wehrfritz a398189939 - add ecore_list_sort() a wrapper for ecore_list_mergesort and ecore_list_heapsort
- change the API for the sort functions to return an int on success
- change ECORE_SHEAP_MIN/MAX to ECORE_SORT_MIN/MAX (*API break*)
- use ecore_list_sort() in ecore_file_ls()


SVN revision: 28188
2007-02-01 19:22:35 +00:00
rephorm b8147d36bf fix ecore_file_get_dir() to return "/" for files in the root directory
SVN revision: 28042
2007-01-18 07:28:56 +00:00
David Walter Seikel abcd2dbe90 Should no longer be static now that we strdup it just like all the other
ecore_file functions.


SVN revision: 26844
2006-10-29 01:08:28 +00:00
David Walter Seikel be5de6cdb3 Copy filename escaping code from e_utils to make it more generally available.
Step 2 is to remove the original and have everything call this one instead.


SVN revision: 26828
2006-10-28 08:48:11 +00:00
Carsten Haitzler fd41ddf197 and really fix it now
SVN revision: 26610
2006-10-15 09:32:25 +00:00
Carsten Haitzler 6abe8fae09 fix recursive rm to delete broken symlinks
SVN revision: 26609
2006-10-15 09:18:26 +00:00
Carsten Haitzler a274d114ee fix recursive rm - does what rm -rf does now
SVN revision: 25239
2006-08-31 08:53:38 +00:00
Carsten Haitzler ae60acfeb4 do not follow the white rabbit... err - i mean symlink! respect the symlinks
dude! on recursive rm... respect!


SVN revision: 25238
2006-08-31 05:12:54 +00:00
doursse 2c32fdaca4 const char * here
SVN revision: 19919
2006-01-20 09:13:19 +00:00
Carsten Haitzler 2c52634e85 and yet more warning removal
SVN revision: 19568
2006-01-06 18:46:30 +00:00
codewarrior 93dd8ce0fc - ++authors
- add ecore_file_symlink


SVN revision: 19506
2006-01-03 00:18:42 +00:00
codewarrior 48e0355efe - ecore_file_size
SVN revision: 18916
2005-12-09 00:02:21 +00:00
Carsten Haitzler e475d8844f illogict patch
SVN revision: 18749
2005-12-01 06:23:58 +00:00
rbdpngn 8a632ab09c Free the heap when we're done, thanks chaos.
SVN revision: 18418
2005-11-10 14:29:33 +00:00
rbdpngn a90d675613 Move ecore_file_ls from an O(n^2) insertion sort to an O(n log n) heap sort,
since we already have it available. Worked fine on OS X and had dj2 check on
Linux to ensure filesystem ordering wasn't skewing the results. He ran a
couple quick benchmarks on a 10k file directory.

Insertion sort results
23:38 <@dj2> real    0m2.134s
23:38 <@dj2> user    0m1.880s
23:38 <@dj2> sys     0m0.120s

Heap sort results
23:35 <@dj2> real    0m0.223s
23:35 <@dj2> user    0m0.072s
23:35 <@dj2> sys     0m0.052s

23:38 <@dj2> and thats on a 3ghz box, heh


SVN revision: 18410
2005-11-10 05:44:41 +00:00
codewarrior 727de7d0fc - char * to const char *
SVN revision: 18163
2005-10-31 09:14:41 +00:00
sebastid 853b70b966 Remove unused variable.
SVN revision: 17882
2005-10-24 10:06:11 +00:00
sebastid 32732357cb Style.
Assume the operations will succeed, and set ret to 0 on fail.


SVN revision: 17881
2005-10-24 10:05:35 +00:00
codewarrior 7f10622a24 - if its a file, dont bother with it, just unlink it
SVN revision: 17880
2005-10-24 09:37:13 +00:00
codewarrior 0be8326d89 - add method to delete dirs recursively
SVN revision: 17848
2005-10-23 23:21:29 +00:00
sebastid fc3eccf033 realpath returns null if the file doesn't exist.
SVN revision: 17444
2005-10-11 20:11:36 +00:00
sebastid da7d6dbe30 dst, not src in second realpath
SVN revision: 17409
2005-10-10 21:10:04 +00:00
sebastid 4545433592 Cleanup
SVN revision: 17396
2005-10-10 18:35:13 +00:00
codewarrior 2fc139fd86 Dont overrite ourselves and zero the file out during copy operations if src and dst are the same
SVN revision: 17393
2005-10-10 16:25:17 +00:00
sebastid e13146588e Skip env variables.
SVN revision: 17274
2005-10-07 17:48:09 +00:00
sebastid fb2ab4ef6c Only allocate the necessary amount of memory
SVN revision: 17273
2005-10-07 17:32:31 +00:00
tsauerbeck 7ba3d1df86 more leak fixes
SVN revision: 17244
2005-10-06 18:48:03 +00:00
sebastid a91b2bdfbd Declare variable.
SVN revision: 17207
2005-10-05 18:39:30 +00:00