how to upload,download, or delete a directory or multiple files in FTP server using CFNetwork? - ios4

i have starting learning about FTP Programming, i learn some from simpleFTPSample that using CFNetwork. From this sample i understand how to upload and download a file from ftp server, and also i understand how to get a list file and directory from FTP server. But the problem is, i want to upload, download, and delete a directory or multiple files in FTP server, but i dont know how to do. Can somebody give an example? Can i do it using CFNetwork? Or am i have to add another library for doing this?
Thank you

i think it will help u
http://code.google.com/p/s7ftprequest/
or
http://www.ftponthego.com/
you could use cURL if you have little success with the apple sample code, see here.
http://www.intelliproject.net/articles/showArticle/index/use_curl_iphone_sdk

Related

Remotely upload a file to Wordpress from nodejs instance

I’m running a node app on Heroku. It gathers a chunk of data and sticks it into a set of JSON files. I want to POST this data to my Wordpress server (right now it’s on siteground, but moving to WP Engine).
I thought the WordPress REST API would provide what I wanted but after reading the docs I’m not not so sure.
Does anyone have any advice on this? It’s not the kind of thing I’ve done before.
Naturally, I could download the generated files and manually upload them in the right place… but I want it to be automated!
Can anyone point me in the right direction?
Looked at WordPress REST API but don’t think that’s the answer.
An option would be to setup a cron job on your Wordpress site to download the already made JSON files. This would let you download the files via http if they're publicly available, or using an api-key, or SFTP even.
You could also go the opposite way and setup a cron job on the server running your node app and use SFTP to deliver the updated files onto your Wordpress site.
If you are really committed to wanting to use the wordpress rest api, I think the closest one that comes to my mind (not an expert in wordpress) would be that you'd upload the json files as media objects: https://developer.wordpress.org/rest-api/reference/media/.

SmartDL for ftp

I need a python code which can download files from a ftp server. I need a built in multi-part download managing package which can help me to retrieve files faster. I tried SmartDL but the problem is I don't know how to retrieve files in a ftp server. Also I used the add_basic_authentication to ensure that, I am passing the right credentials. Please help me with a solution.
I have no problem using any other solution/package which uses Multipart download.
P.S:- I need to save the Downloaded files on to an Object storage on Cloud. The size of each file may be 300MB and I need to download 20TB of data.
Thanks in anticipation.
Take a look at ftplib, it's a simple FTP library which will permit you to download files from a FTP server.

Etherpad server installation

I am trying to deploy an etherpad installation on a linux server. However I am unable to find ways to allow etherpad to save documents onto the server. I want to save the text files that I edit with etherpad to be available as a .txt file in a particular directory on the server.
Any suggestions as to how I can go about doing this? I did not find much documentation online to help me with this, hence resorting to this.
You can simply access the txt output of a pad by appending
/export/txt
to your Etherpad Pad URL
You should read the documentation.

IIS7 File already in use

Recently I've installed IIS7, but when I try to edit ANY file inside my wwwroot and save it it keeps giving me an error 'can't save file, file is already in use'. Even if I make a new .txt file and try to save it I get the same error. It's really getting annoying.
Been trying alot but I really can't figure out.
Stop your website in IIS Manager if you want to edit the files.
A better approach in the long run is to use FTP to edit your files rather than working directly on your web server.

How can you upload directory using node.js?

I'm new to node and want to upload directory using node.js. Can anybody please help? Thank You
If it's possible how? and if not then why?
you can upload only files.
however there are workarounds,you can
covert the folder to a zip file (client side), it really depends here on your case.
upload the zip file
then unzip it in the server
you can use google to find out how to do every step of those.
You can use use any Folder uploading library like https://github.com/blueimp/jQuery-File-Upload or https://dropzonejs.com which allows you to Drag and Drop whole directory using HTML5 features.

Resources