Y_Ini check is folder exist - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_Ini check is folder exist (
/showthread.php?tid=545636)
Y_Ini check is folder exist -
Banditukas - 09.11.2014
Hi,
1. How to check is folder exist
2. How to delete folder
Re: Y_Ini check is folder exist -
Dziugsas - 09.11.2014
You can only check for files.But if server wont find folder it will crash i guess.
Re: Y_Ini check is folder exist -
biker122 - 09.11.2014
You cannot delete folders.
You can just browse through files, with their path. If the specified path doesn't exist, then the server will crash when you're trying to modify/create a file inside the non-existing path.
Re: Y_Ini check is folder exist -
Banditukas - 09.11.2014
Oh yes sorry i mean files
Re: Y_Ini check is folder exist -
Dziugsas - 09.11.2014
PHP код:
if(fexist(filename))
Re: Y_Ini check is folder exist -
Banditukas - 09.11.2014
How to delete?
Re: Y_Ini check is folder exist -
Dziugsas - 09.11.2014
https://sampwiki.blast.hk/wiki/Fremove
Man, do you even search?
Re: Y_Ini check is folder exist -
dazman14 - 09.11.2014
Код:
new FileN[100];
new FileN = "d.txt";
fremove(FileN);
Re: Y_Ini check is folder exist -
Sasino97 - 09.11.2014
There is a plugin for file libraries that make possible to manage folders/directories.
https://sampforum.blast.hk/showthread.php?tid=92246
Re: Y_Ini check is folder exist -
Stoyanov - 09.11.2014
Use
mxINI
Код:
ini_removeFile("адрес/файла.ini");//delete file
Код:
fexist("адрес/файла.ini");//check if file exist