Re: question on func get_file_info
- Posted by don cole <doncole at p?cbell?net> Jul 25, 2007
- 662 views
Salix wrote: > > Is there a better/simplier/faster solution for this? > > }}} <eucode> > include file.e > > function get_file_info(sequence x) > object dx > dx=dir(x) > if length(dx)=1 then > return dx[1] > end if > return 0 > end function > </eucode> {{{ > > Does anybody use similar routine(s) regularly? > Is it worth to propose it for a standard include file? > > Thanks, > > Salix Hello Salix, I use similar routines with dates. What I would do is create a new include file called my_file.e. Put in get_dir_name(object dir),get_dir_size(object dir)and get_dir_attributes(object dir) etc... Put in an error trap that says "Directry not found". No I don't think this should go into a standard routine. Don Cole