Jump to content

fileRename/fileCopy functions


Recommended Posts

My script, which works with files, uses backup system to prevent full data loss if some errors were occurred while writing data. And I always must to create new file with new backup name and write into it content of original file. So I must delete original file and create new one with new data.

There's no fileRename or fileCopy functions and this process can take more processor's and hdd's time then just renaming if server contains more players.

There's a source patch (0006030, request:0006027) witch adds fileRename function, but no actions and comments about it.

And i want to ask: is anything wrong with this code or this feature breaks some other systems?

Link to comment

Function already checks all ACL rights for both files and their resources before any actions. And for client these checks is not needed. I think there's no ACL issues for this function.

And i can add wiki changes for this function, if it will be added.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...