Y_Ini check is folder exist
#1

Hi,

1. How to check is folder exist
2. How to delete folder
Reply
#2

You can only check for files.But if server wont find folder it will crash i guess.
Reply
#3

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.
Reply
#4

Oh yes sorry i mean files
Reply
#5

PHP код:
if(fexist(filename)) 
Reply
#6

How to delete?
Reply
#7

https://sampwiki.blast.hk/wiki/Fremove

Man, do you even search?
Reply
#8

Код:
new FileN[100];
new FileN = "d.txt";
fremove(FileN);
Reply
#9

There is a plugin for file libraries that make possible to manage folders/directories.

https://sampforum.blast.hk/showthread.php?tid=92246
Reply
#10

Use mxINI

Код:
ini_removeFile("адрес/файла.ini");//delete file
Код:
fexist("адрес/файла.ini");//check if file exist
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)