![]() |
deletefile()?
It seems to be having problems deleting file(s) on the serverside.
The npc server has rights to them and I can successfully loadlines and savelines to/from the file(s) in question. I'm thinking maybe Stefan forgot to add support for this function when he added the npcserver rights security patch? Anyone else experiencing such problems with this function? |
On Zodiac Dev, it works Ã* mervaille.
[ may not have security patch, however ] |
Instead of using load and savelines I would suggest load and save Vars. I'm not exactly sure if that would give you a different result but just something to try in case.
|
Quote:
|
HTML Code:
for (temp.levelData: this.toDelete) |
Quote:
I have been using loadVars and saveVars... But for some reason -- a while back -- when I used loadlines, the files that were saved using this didn't appear instantly onto the File Browser. With saveVars, it does. He may be onto something. I figured that saveVars called savelines; they may be two independent functions. Zero -- Have you tried deleting it after you called /refreshfilelist ? |
Quote:
|
Quote:
What's your issue? |
Quote:
|
Well I agree this is right that loadvars/savevars may not have the file browser update issue as loadlines/savelines does but that isn't the concern here. I simply pointed out that loadlines/savelines works for the sake that we know the npc server has rights to modify the files. But if it makes you all happy, loadvars and savevars works as well :)
I usually don't even mind about the problem with savelines not displaying the file in the file browser...Hey, it still exists ^_^ EDIT: Oh, forgot you post Novo. I didn't do exactly that but I have tried it with files that are visible in the file borwser as well as files that aren't. Quote:
|
Quote:
|
If it didn't work, my suggestion would be to use the RC command:
/reloadscriptlibs Tell us if the problem persists. |
Quote:
|
'Twas a suggestion my dear man, a suggestion.
|
Quote:
|
Quote:
|
Can you guys please just drop it...
Stan I thank you for the suggestion (even if it wasn't what I needed) and I appoligize for what Ziro said. Ziro, thank you for trying to be my friend and defend me but you don't need to attack other people. (Trying to say that the best way without coming out as a **** to either of my friends) |
Quote:
Zero, in what folder is the files you are trying to delete? Because, deletefile() can't delete files in levels/ or any sub folders to it. |
Quote:
Well that is most likely the problem then. Bjorn made it levels/administration/ Sadly, he isn't online to fix that :( |
Quote:
Quote:
|
The function not being able to delete files within the levels/ folder is a nice security measure.
However, it should be a serveroption if it isn't already. Also, the fact that this function was implemented before the NPCServer rights were indicates that the security measure is obsolete. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Argue over AIM if you must, stop spamming the thread with your asinine remarks.
|
Stop derailing the thread.
Someone already mentioned if it was in the levels folder, this file. May we see the line you are using to delete it? :) |
Quote:
|
Quote:
http://forums.graalonline.com/forums...ad.php?t=73587 |
Quote:
|
Quote:
|
because we're tuff guys rite!!
o_o;; |
Quote:
|
Quote:
There were more important things to consider. However, I do wonder what happened to my half-finished levels for the Zormite Castle. HINT HINT |
OH I MADE THE CURRENT ONES :D
I even did the tiles for them SCRIPTER FOR LIFE |
Quote:
|
| All times are GMT +2. The time now is 10:55 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.