Raised This Month: $51 Target: $400
 12% 

[REQ] files function increase


  
 
 
Thread Tools Display Modes
Author Message
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 10-30-2006 , 08:16   [REQ] files function increase
#1

file_exists("test.log") and delete_file("test.log") execute from addons folder by default and only support upto parent folder like "../test.log".

but rename_file("test.log") execute from hl folder by default and support all drivers with fullpath.

if make it can all support all drivers and use same operate will be good.
thx.
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
BAILOPAN
Join Date: Jan 2004
Old 10-30-2006 , 11:01   Re: [REQ] files function increase
#2

rename_file should be using the buildpath method that file_exists and delete_file use. However, we cannot sacrifice backwards compatibility. So we'll either have to alter the original native for a third parameter, or introduce a new native (such as rename_file2).
__________________
egg
BAILOPAN is offline
BAILOPAN
Join Date: Jan 2004
Old 10-31-2006 , 15:19   Re: [REQ] files function increase
#3

This has been addressed as revision 3143. Note that rename_file now has a third optional, default-disabled parameter which uses the correct behaviour you are looking for.
__________________
egg
BAILOPAN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode