ftp

recommend a solid .net ftp library

what c# ftp client do you guys recommend? there seems to be a few available and I want to go with one that others think is good ...

How big is FTP performance load in PHP?

Hello, I have a PHP script on a domain (say example.com) and this domain has three subdomains: a.example.com b.example.com c.example.com IP addresses of this all this domains is xxx.yyy.zzz.ddd and domains differ only in last octet ("ddd" part). I think it's quite ordinary for subdomains. My question is if this fact will improve th...

why stream a file versus sending it at once?

Just looking at various ways of ftp'ing a file in c#. I noticed some examples do: streamReader.ReadToEnd() then convert to bytes, then send the file in one go. while others do a: while (contentLength != 0) stream.write(buff, 0, contentLength); contentLength = fileStream.Read(buff, 0, buffLength); Is sending the file 2048 a...

generating a CSV file, what carriage return character should I use?

I have to create a CSV file that represents an order. The file is going to be FTP'd over, and imported into another system. What line feed/carriage return character should I use? I am pretty sure the receiving end will be a microsoft system, is there a way to make it server agnostic? ...

How do I send a TMemoryStream using Indy's IdTrivialFTP?

I am using Delphi 2010 and Indy 10 that ships with it. The MemStream is a TMemoryStream and it contains a file downloaded from a website. IdTrivialFTP1 := TIdTrivialFTP.Create(nil); try IdTrivialFtp1.Name := 'IdTrivialFTP1'; IdTrivialFTP1.Host := 'my-tftp-server-name.contoso.com'; IdTrivialFTP1.Port := 69; IdTrivialFTP1.ReceiveT...

FTP zip upload and unpack

Hi Alsways uploading made web-sites , projects, I want to make such thing make zip file, upload one file and then extract with default CHMOD for folders lets say 755 and for files 664 With Cpanel hostings its OK, I can do it via file manager... But for hostings without I can't. Baybe someone can give a hint how...???? ...

Download a file that is forced as attachment with PHP

Hi, I am trying to download a file with PHP from an FTP server which i can access from http too. For example: FTP://username:[email protected]/file_name_here.gz. The file is forced as an attachment from the server (not as a PDF or TXT would do eg: output). I tried it with 3 different methods: file_get_contents -> Return a zero ...

IIS 7.5 FTP 550 Error for No Reason

Before describing my problem, let me go into the configuration. I bought an Android phone and thought that it would be a great idea to access my personal files at home on my Windows 7 Professional 64 bit computer from anywhere. I setup IIS 7.5 to create an FTP site for my user directory (C:\Users\MyUser). Permissions are set to read-on...

creating an ftp client with Python

Hi, I've always thought about creating my own ftp client ever since I've started using the Internet. And now that I'm studying Python, I'm thinking about creating one as an exercises/personal project. I'm wondering, what libraries do you guys suggest? Will ftplib suffice? Or would you suggest another library(preferably one that has ...

Eclipse FTP "Team Plugin"

It seems to me from the following page http://www.eclipse.org/eclipse/platform-team/target.php and other pages like it. that there has been a robust, mature, properly integrated (and seemingly very smart) way to upload and synchronize files from an eclipse workspace with an FTP site for four to six years already. It seams from that page ...

Python ftplib: Overwriting a File doesn't work with STOR

I want to overwrite an existing file "test.txt" on my ftp server with this code: from ftplib import FTP HOST = 'host.com' FTP_NAME = 'username' FTP_PASS = 'password' ftp = FTP(HOST) ftp.login(FTP_NAME, FTP_PASS) file = open('test.txt', 'r') ftp.storlines('STOR test.txt', file) ftp.quit() file.close() I don't get any error messages a...

Dir exists or not on FTP

Hi, how to check if some dir exists on the server or not. Although I can check file exists or not through try { FtpWebRequest request=null; request = (FtpWebRequest)WebRequest.Create("ftp://" + webrequestUrl + "/somefile.txt"); request.Credentials = new NetworkCredential(username,...

How to get subdirectory from the FTP server?

I have implemented one application in which the user can connect with FTP server from the iphone using authentication, and get the listing of the directory. Now when user touch on main directory then I want subdirectory listing. How is it possible? ...

Need advice on how to setup this rather odd site (in Django)

I could really do with some advice here. I'm new to Django, but understand the fundamentals. Though I need some advice on how to setup this site (that's not too conventional really). I have a client who has a site that is mainly static HTML pages (alot of them) which he prefers as he does the content in Dreamweaver. Trust me, I've tried...

How to separate files from folders?

I have a simple problem. My (Delphi 2007 with Indy 9) application connects to an FTP server to retrieve a list of files. (NLST, not LIST) I then download every file separately for further processing. Unfortunately, the administrators of the FTP site added a subfolder in the folder where the files are located. The current code thinks it'...

C# - is there a way to get the local path of the Default FTP site?

Hi, Is there a way to get the local path of the Default FTP site (in IIS) programmatically? Like C:\program files\ftproot, shown below: I'd imagine it would be something like: DirectoryEntry ftproot = new DirectoryEntry("IIS://localhost/MSFTPSVC/1/Root"); string directory; // = ftproot.something Any ideas? Edit: This would be f...

What is the correct way to wrap file names with space when download files via FTP

I have written a FTP client ( To learn). Im having problems when handling with spaces. What is the accepted solution for this ( Preferably one that works with "all" ftp servers). I have tried: 1)Just sending the path name. 2)Sending "FileName With Space.omg" 3)Sending \"FileName With Space.omg\" Version 3 "works" with getting filesize,...

IIS FTP 7.5 Extensibility (IFtpLogProvider and logging FTP failures to the event log)

Hey all, Anyone pretty familiar with FTP 7.5 extensibility in IIS know what I might be doing wrong? I am having serious trouble getting an implementation of IFtpLogProvider to work correctly for custom logging. All I want to do is log failures beyond a static threshold to the event log, and have garbage collection every so often. I've ...

How to read a text file via FTP

I am creating an application for the android, and would like it to be able to read a text file via anonymous FTP. I've tried URLConnection, but it doesn't seam to be working. After some Google searching it appears that URLConnection doesn't always work with some FTP servers. All of the java FTP connection libraries I've found require ...

Is it possible to upload files by using inno setup?

Hi. I'm searching for a way to upload my installation log files at the post install by using inno-setup. the upload is to my FTP server. ...