Commit Graph

235 Commits

Author SHA1 Message Date
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
Viktor Kojouharov 35495cc97f the monitor was deleted twice
SVN revision: 30942
2007-07-23 16:25:38 +00:00
ningerso b44bdf2f92 Avoid changing the interval on a NULL timer.
SVN revision: 30783
2007-07-12 21:45:55 +00:00
Dan Sinclair 84c6b57869 - if the file doesn't exist or the monitor add fails then we will delete the
item from the list, but if the item isn't in the list the resultant list ends
  up being NULL and we lose everything being monitored so far. So, add the item
  to the list earlier so we can remove it safely if needed.


SVN revision: 30584
2007-07-03 19:37:18 +00:00
Dan Sinclair 0aba1dbca4 - the event name is only valid if the event length is greater then 0
SVN revision: 30582
2007-07-03 18:18:12 +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 bddb9be5cf Fix for systems which do not have inotify support in glibc.
SVN revision: 29340
2007-04-04 11:10:44 +00:00
Carsten Haitzler 216d8d315b fix inotify stuff.. bad bad bad.
SVN revision: 29237
2007-03-30 12:24:19 +00:00
Sebastian Dransfeld af731bf780 Remove unneeded include.
SVN revision: 29201
2007-03-27 18:59:23 +00:00
Sebastian Dransfeld c29155ecb0 TODO
SVN revision: 29200
2007-03-27 18:15:16 +00:00
Sebastian Dransfeld 0f6383ee5b Readd watch if a file is recreated.
SVN revision: 29197
2007-03-27 05:36:29 +00:00
Sebastian Dransfeld e82715591a Use correct inotify include.
SVN revision: 29189
2007-03-26 21:47:41 +00:00
Sebastian Dransfeld d79c286b70 file is not NULL and empty if a file is monitored
SVN revision: 29186
2007-03-26 19:30:51 +00:00
Sebastian Dransfeld 928faa73f5 Check for NULL argument.
SVN revision: 29110
2007-03-25 12:05:48 +00:00
Michael Jennings feabcdfe64 Thu Mar 15 12:20:27 2007 Michael Jennings (mej)
Re-apply the previously reverted patch and add (I think) the correct
fix for ecore-config.  I haven't tested this extensively, but edje
builds okay with it, so hopefully it's right.
----------------------------------------------------------------------


SVN revision: 28755
2007-03-15 22:21:28 +00:00
Michael Jennings 3edb26cf60 Wed Mar 14 21:57:38 2007 Michael Jennings (mej)
Reverting changes; kindly test patches BEFORE applying them.
----------------------------------------------------------------------


SVN revision: 28732
2007-03-15 07:57:43 +00:00
doursse d9fa45fe5f use the correct Windows macro when compiling with microsoft compiler, and not mingw/cygwin
SVN revision: 28727
2007-03-15 01:01:10 +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 d4014861d6 allow shutting down ecore_file and re-initting
SVN revision: 28063
2007-01-19 14:02:34 +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
Carsten Haitzler 9177a1e729 1. make curl interactivity MUCH better.
2. make ecore_evas use the norender call to delete objects aggressively for
hiddent canvases.


SVN revision: 28015
2007-01-16 10:17:46 +00:00
Sebastian Dransfeld c07d9dd245 Limit curl run to 0.2 seconds.
SVN revision: 27937
2007-01-13 01:49:42 +00:00
Kim Woelders 82a7290a4a Fix warnings.
SVN revision: 27036
2006-11-10 19:11:12 +00:00
Kim Woelders 563035d3db Fix warnings.
SVN revision: 26974
2006-11-05 16:34:30 +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
balony 54c1f3e1ee Adding a function to abort all downloads.
SVN revision: 25634
2006-09-08 16:52:29 +00:00
sebastid 1b42f03040 Disable debug function.
SVN revision: 25518
2006-09-06 07:10:25 +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
sebastid 7f068dfaf6 For debug
SVN revision: 23234
2006-06-07 09:40:24 +00:00
sebastid a2402e571b Listen to MOVE_SELF events
SVN revision: 23233
2006-06-07 09:02:04 +00:00
codewarrior 237a7678de - new addition for ecore_file_download. now we have a progress_cb from curl so we know how much of the file we've downloaded.
SVN revision: 21928
2006-04-07 12:27:39 +00:00
Carsten Haitzler 1c0b3c9706 check for NULL list
SVN revision: 19935
2006-01-21 02:12:51 +00:00
doursse 2c32fdaca4 const char * here
SVN revision: 19919
2006-01-20 09:13:19 +00:00
Carsten Haitzler f06d201516 remove duplicate paths
SVN revision: 19900
2006-01-19 09:32:18 +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
Carsten Haitzler 7554f8ee36 actually make symbol hiding work!
SVN revision: 19314
2005-12-27 17:17:31 +00:00
codewarrior 48e0355efe - ecore_file_size
SVN revision: 18916
2005-12-09 00:02:21 +00:00
Carsten Haitzler 068266c8a2 another util function - list all executables in your $PATH - in full.
SVN revision: 18890
2005-12-07 07:18:52 +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
Carsten Haitzler 8d2fe31aef fix ecore to NOT segv like a madman now.
SVN revision: 17257
2005-10-07 02:44:20 +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
sebastid 4d6bcecff4 Check the strdup
SVN revision: 17206
2005-10-05 18:38:51 +00:00
sebastid dcb7726415 New func
SVN revision: 17205
2005-10-05 18:38:27 +00:00
tsauerbeck f263fcd2c8 more memleaks fixed
SVN revision: 17145
2005-10-03 18:25:22 +00:00
Carsten Haitzler b27df0ea59 be more lenient and use access() to check
SVN revision: 17115
2005-10-02 15:44:24 +00:00
Carsten Haitzler b13ee0052b can exec logic fix
SVN revision: 17087
2005-09-30 08:41:21 +00:00
sebastid 7aaf5e9e12 p is related to exe1, not app
SVN revision: 17079
2005-09-30 00:58:03 +00:00
sebastid 06972f99e5 And remove debug.
SVN revision: 17078
2005-09-30 00:55:57 +00:00
sebastid 3d6e558b87 Correct handling for HOME=""
SVN revision: 17077
2005-09-30 00:55:27 +00:00
sebastid 6839e85061 Tilde expansion
SVN revision: 17076
2005-09-30 00:51:29 +00:00
sebastid d83329a7b8 Move ecore_file_app_exe_get since it doesn't use path
SVN revision: 17075
2005-09-30 00:46:15 +00:00
sebastid 49b85e4e1f Move realpath to ecore_file_can_exec, since it always makes sense there.
SVN revision: 17074
2005-09-29 17:50:04 +00:00
sebastid f50cb7415e resolv symlinks
SVN revision: 17073
2005-09-29 17:25:38 +00:00
Carsten Haitzler f685e689fc search for exe's properly :)
SVN revision: 17025
2005-09-28 05:57:41 +00:00
sebastid 1270de6ac5 Check if file really is something.
SVN revision: 17016
2005-09-28 02:27:23 +00:00
sebastid f6454d1a67 Remove leading and trailing whitespace.
SVN revision: 17015
2005-09-28 02:26:08 +00:00
sebastid 27f44473b7 Don't crop the app
SVN revision: 17014
2005-09-28 02:19:13 +00:00
sebastid a1da538057 Really strip all whitespace.
SVN revision: 17013
2005-09-28 02:17:30 +00:00
sebastid 773835e9fc Strip arguments
SVN revision: 17011
2005-09-28 02:08:52 +00:00
sebastid 8264fcfca2 Check if a full path is given as the argument.
SVN revision: 17009
2005-09-28 01:28:22 +00:00
xcomputerman 7bd778bd29 Directory list should sort case-insensitive. Anything else is counter-intuitive and annoying. :)
SVN revision: 16694
2005-09-12 02:42:39 +00:00
sebastid b6ce3afdb5 Only run init when count is 1 and shutdown when count is 0
SVN revision: 16649
2005-09-07 08:57:08 +00:00
sebastid efe51da1dc init count
SVN revision: 16648
2005-09-07 08:50:25 +00:00
sebastid bb818f0cc2 Remove define, isn't needed.
Formatting.


SVN revision: 16630
2005-09-06 23:33:05 +00:00
sebastid c699769bd5 ecore_private.h is included in ecore_file_private.h
SVN revision: 16629
2005-09-06 23:31:18 +00:00
sebastid 549becd9d9 file compiles, but does not work.
SVN revision: 16628
2005-09-06 23:30:44 +00:00
sebastid 9bc6eb91e4 config.h is included in ecore_private.h
SVN revision: 16626
2005-09-06 23:15:49 +00:00
sebastid b521fa41d5 These are included in ecore_private.h
SVN revision: 16624
2005-09-06 23:08:42 +00:00
sebastid 5250fbc7c8 * Difference between user wanting a module, and the possibility of building
a module.
* Only do tests related to a module, if the module is to be built
* use AC_PATH_GENERIC
* Formatting
* Remove som weird AC_SUBST, why were they there?


SVN revision: 16543
2005-09-05 08:40:50 +00:00
sebastid 6b7f4f50ce Only need Ecore_Data.h to define Ecore_List
SVN revision: 16524
2005-09-04 18:54:32 +00:00
sebastid 19d9aa1452 Move Ecore_Oldlist to Ecore_List2 and rename the funcs from _list_
to _list2_


SVN revision: 16425
2005-08-30 10:05:27 +00:00
sebastid a83d7cb3b3 inotify is updated to support only kernel 2.6.13 with an updated
kernel-headers. It should work with some older revisions of inotify with
some hacking, but I don't have different versions to check with.


SVN revision: 16394
2005-08-29 15:15:59 +00:00
sebastid 8b675d93ff Remove debug info.
SVN revision: 16384
2005-08-27 12:25:22 +00:00
sebastid b71553bff9 Fix and enable inotify monitoring. You need a fairly recent inotify for
it to work.


SVN revision: 16383
2005-08-27 11:50:50 +00:00
lordchaos 2c51880650 Don't clip "/" if that's all we have
SVN revision: 16379
2005-08-27 04:34:56 +00:00
lordchaos a228627e6c Make ecore_file_exists return true for "/", so we can monitor that dir
SVN revision: 16378
2005-08-27 04:17:36 +00:00
lordchaos 5e18e6ef44 Stop a seg on stopping '/' monitoring in ecore_file_monitor_poll
SVN revision: 16377
2005-08-27 03:23:10 +00:00
lordchaos 04b233b56c Fix for null ecore_list on ecore_file_monitor_poll when we are monitoring a file
SVN revision: 16174
2005-08-15 08:05:50 +00:00
Carsten Haitzler 90e352e0c7 aha! bug! bad ecore_file_poll! fix!
SVN revision: 16021
2005-08-04 03:56:27 +00:00
Dan Sinclair 1c6ef60b3c - add ecore_file_download_protocol_available so we can determine if the
protocols we need are compiled in or not


SVN revision: 15488
2005-06-22 14:51:37 +00:00
Dan Sinclair 6d166a447e - call the job completion callback after we've closed the file so we know
its all written out to disk.


SVN revision: 15473
2005-06-22 02:00:35 +00:00
sebastid 97631c20b2 Remove debug.
SVN revision: 15404
2005-06-18 00:23:00 +00:00
sebastid 4548e51fa5 Download files with CURL. Thanks to Simon Poole.
SVN revision: 15400
2005-06-17 23:52:32 +00:00
sebastid 6dd0159c60 Add a ecore_file_download function. For now it can "download" urls pointing
to local files. Should be extended to support several types.


SVN revision: 15346
2005-06-16 01:54:12 +00:00
sebastid 62e822d67e The size is there to not overflow the buf, so just use the buf size.
SVN revision: 15275
2005-06-12 14:08:46 +00:00
handyande 088534a6f6 Move app detection code from inside E to Ecore_File
SVN revision: 15256
2005-06-11 13:29:09 +00:00
sebastid 52a6e7f2a3 ecore_file needs ecore
SVN revision: 14983
2005-05-28 11:46:10 +00:00
sebastid a63963d14b ecore_file_mv()
SVN revision: 14703
2005-05-11 08:52:27 +00:00
sebastid f41eaabb1a ecore_file_mkpath:
- do the right checks.


SVN revision: 14595
2005-05-04 07:15:26 +00:00
Dan Sinclair e3616659b7 - add rmdir and unlink wrappers
SVN revision: 14456
2005-04-28 21:53:36 +00:00
sebastid 9734b7c5da Evas is gone
SVN revision: 14256
2005-04-20 09:20:33 +00:00
Carsten Haitzler 67ce5e1c1f move evas to private - it should be removed entirely though :) c++ thingies...
SVN revision: 14205
2005-04-15 01:22:46 +00:00
sebastid 64f05a5a25 Don't use dlist
SVN revision: 14201
2005-04-14 13:35:50 +00:00
sebastid dda04c478c Evas_List -> Ecore_List
SVN revision: 14198
2005-04-14 10:52:58 +00:00
sebastid 40ec35d38d Inotify monitoring almost works now. Since inotify seems to be the
future, I changed the interface of monitoring to be more like inotify.


SVN revision: 13984
2005-03-30 06:35:12 +00:00
sebastid f008bceb59 Fix leak
SVN revision: 13847
2005-03-22 11:30:33 +00:00
Carsten Haitzler 5856cddd6f autopackage ecore...
SVN revision: 13679
2005-03-10 15:19:43 +00:00
Carsten Haitzler de28192bda kwo's ecore cleanup patch
SVN revision: 13559
2005-03-02 07:06:44 +00:00
sebastid 9df2d25036 Common functions.
SVN revision: 13462
2005-02-22 12:41:14 +00:00
sebastid 45d11bcebd Updates. Reduce polling time on no events.
SVN revision: 13460
2005-02-22 12:38:17 +00:00
sebastid 98fe13e6aa Update when func is called.
SVN revision: 13453
2005-02-21 16:03:08 +00:00
sebastid abdd8729c0 Never call func on init.
SVN revision: 13444
2005-02-20 12:33:59 +00:00
sebastid 813c77c392 fileinteraction and monitoring
SVN revision: 13442
2005-02-20 12:17:07 +00:00