ftp

Resolving a remote $HOME directory via FTP/SFTP.

In Objective-C, NSString has a method called stringByExpandingTildeInPath This method will take a string like "~/Documents" and resolve it to "/Users/Nick/Documents". The "~" tilde is resolved to the home directory of the current user of the machine the program is running on. Now my question is this... I am writing a little FTP/SFTP ...

Ruby Net::FTP Timeout Threads

I was trying to speed up multiple FTP downloads by using threaded FTP connections. My problem is that I always have threads hang. I am looking for a clean way of either telling FTP it needs to retry the ftp transaction, or at least knowing when the FTP connection is hanging. In the code below I am threading 5/6 separate FTP connection...

C# FileSystemWatcher And FTP

I monitor files that are dropped on a ftp via filesystem watcher then move to another dir. Now I trigger the copy off the create event of the filesystem watcher but obviously in the case of ftp the create is just a stub file and the data comes in and fills the file as it uploads till complete. Anyone have an elegant solution for this, ...

C++ FTP Library?

Hello there, I am looking for an FTP Library for C++ to do basic ftp functions like authenticate, change directory, upload files, etc. but I can't seem to find one. I've searched over Google, Sourceforge, and CodeProject (well, there's one complete FTP CLIENT project for Win95 in CodeProject, however I don't need the entire ftp client.....

Any reason why socket.send() hangs?

I'm writing an mini FTP server in Python that exposes an underlying database as if it was FTP. The flow is something like this: sock.send("150 Here's the file you wanted\r\n") proc = Popen2(...) for parts in data: data_sock.send(parts) proc.kill() sock.send("226 There's the file you wanted\r\n") data_sock.shutdown(0) data_sock.clos...

Uploading Multiple Files For FTP in Mac

Hi i am using Connection Kit Framework in my cocoa application.. I need to set multiple connections to a ftp server. and also i am facing problem in multiple file uploads.. How can i do that using connection Kit.. Can anyone Guide me on this.. I want to connect to ftp from three different classes.And also i need to upload from three cla...

Deploy Maven site using FTP Ant task

Hi, I am trying to deploy a Maven site to an FTP server. I am using the following code in my pom.xml: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>ftp</id> <phase>post-site</phase> <configuration> <tasks> <ftp action="del" server="nexu...

Which FTP transfer modes are widely used?

Reading the FTP RFC (RFC959), I notice some modes that I've never seen used, and indeed don't seem to be implemented by popular FTP software (vsftpd for example). In particular, for the STRU command, only file mode "STRU F" is commonly used, and for the MODE command, only stream mode "MODE S" is commonly used. So the question is, when ...

Upload File to FTP Server on iPhone

Hello, I would like to implement logic that uploads file to FTP Server. I am new in iPhone development, so want to figure out preferred approach. After browsing available API for this task I have managed to find only code that uses CFNetwork (that looks like not Objective C based). There is also URL Loading System that uses NSURL etc ...

Comparing local and remote file size via Net::FTP in Rails

I wrote a sync script to upload a local file if it does not exist on the ftp server. I want to make it more robust by ensuring that the file size on each match. This will allow the script to correct the file if it was interrupted during an upload. What is the best way to get the file size for both the remote and local files. I am usin...

How to optimize my BinaryWriter ?

Hey there, i am currently working at a program that transfer files via FTP. I send the files in binary because with ASCII I can´t send special characters. Here is my currently code : using(BinaryReader bReader = new BinaryReader(srcStream)) using (BinaryWriter bWriter = new BinaryWriter(destStream)) { Byte[] readByt...

Multiple uploads

Hi I need to upload the files to FTP from three different classes simultaneously.. How can i handle it using connection Kit .. If i use thread for three classes uploading will not be done. I think for uploading it is using the main thread of the application.. How can i separate this into three main threads so that uploading should be car...

Are there any good Ruby FTP libraries for Ubuntu?

After spending some time on Google all that I've found so far is ChilKat which only runs on Windows. I'm looking for something similar that'll run on Ubuntu. Obviously there's NET::FTP, Net::SSH and Net::SFTP so I could roll my own and that may be what I'll do, but I'm hoping to save a lot of time by using something else that's already b...

OpenNETCF.Net.Ftp Behaving Flaky

I tried posting on their boards (authors of this library), however it literally takes months for them to reply when it comes to the free software (can't blame them). But anyways I have found that this library is behaving weirdly - for instance, a major problem with my application is when someone is trying to sign in (through FTP), they ...

Selective FTP download using .NET

I have an ftp build site where new builds will be updated. It will create a new folder named "Build XXXXX" in a specific ftp location for every new build. I need to download the build from a location inside "Build XXXXX"directory (eg. Builds\Build XXXXX\German\iso\German.iso). Here I can't predict number XXXXX. I'm planning of writing ...

FileSystemWatcher for FTP

How can I implement a FileSystemWatcher for an ftp location (in C#). The idea is whenever anything gets added in the ftp location I wish to copy it to my local machine. Any ideas will be helpful. This is a follow up of my previous question. ...

Upload sets of images to one single folder or seperate folders for each set?

I would be having 150-200 products on my website which could grow in the future and I have around 30 - 40 images for each product so I wanted to ask should I have separate folders for storing images of each product or save all the images in one single folder? Thanks ...

Check for file duplicates during FTP Sync

I'm implementing a .NET utility to sync my local folder with an FTP location. What is the best way to check whether the file is the same or not. I'm using a ,NET FTP Client API called 'edtfptnet'. I found that even though files are the same, the sizes are shown different for exe files. The size returned by the API is the same as the size...

How do I "kick-start" a jcl stream on the mainframe using FTP inside vb.net 2008

The following is the code that uploades a bytearray into a file DSN on our mainframe. It works very well. What I want to do is upload the jcl which should then start to execute. That's the part I am stuck on. I used to be able to do it through WININET, but I want to get away from that and use the better FTP commands in vb.net Pub...

Powershell FTPWebRequest and EnableSsl = True

I searched this site and found an FTPWebRequest example via Powershell. I put it to use and it works fine. However, when I enable SSL via EnableSsl=$True, all I get is timeouts or a delayed "227 Entering Passive Mode", which breaks the process. As soon as I disable EnableSsl, I can fly right through. Can someone point me in the right dir...