[RESOLVED] Support for FTP in plugins scripts

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

[RESOLVED] Support for FTP in plugins scripts

Postby pmk65 » Fri Apr 15, 2016 3:40 pm

I just noticed that Document.Filename is empty if file is loaded from FTP. It should be possible to get the name/path of a file. Even if it's located on FTP.

We also need some plugin functions for uploading/downloading from FTP.

Example case (The Node-Sass plugin Im currently working on)

The plugin is triggered by document save (if the file is a SASS stylesheet). Then it call node-sass and compile the file into other files, which is saved relative to the original document.
This works perfectly for local files. But for FTP files, I want to save a temp version of the document locally, compile it and then upload the generated files to the FTP server (With the path and credentials of the original document) This is currently not possible to to the lack of FTP functions.
Last edited by pmk65 on Wed Apr 20, 2016 9:46 am, edited 1 time in total.
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Support for FTP in plugins scripts

Postby Aivars » Mon Apr 18, 2016 11:27 am

I'll add it to suggestions list.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 10 guests

cron