You are not logged in.

jordi

Intermediate

  • "jordi" started this thread

Posts: 465

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

1

Tuesday, February 13th 2018, 10:11am

file existance checker

Hi,

I made a very simple plugin yet quite powerful, that allows you to check if a file (jpg, xml, ...) exist or not, so you can use it to avoid having the krpano error when file is not found, or many other things ...

USAGE :

first you need to include it of course

Source code

1
<include url="file_exist.xml" />



inside the action you want just call the action checkFileExist and pass as parameter the url of the file you want to check

Source code

1
checkFileExist(path/to/your/file/name.png);

take in care the path must be set from the root of your project

then you will have a variable that stores if the file exist or not


Source code

1
debug('does my file exists : ', urlExist);



That's all as simple as that.

Hope you enjoy this little contribution.
jordi has attached the following file:
  • file_exist.xml (668 Byte - 62 times downloaded - latest: Jul 13th 2019, 1:59pm)
everpano.com step beyond 360

Alexey Tkachenko

Professional

Posts: 752

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Tuesday, February 13th 2018, 10:26am

Wow) That's pretty cool! Thanks) I'll give it a try ;-)
Regards,

Alexey