Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ftp]

File Transfer Protocol (FTP) is a standard network protocol used to transfer files from one host to another host over a TCP-based network, such as the Internet.

3
votes
2answers
39 views

Check that file is fully downloaded by FTP

I have a task in which I want to handle error occurred in FTP downloading, For which I used the wget command to download a file via FTP and once the download is ...
1
vote
1answer
318 views

Handling FTP exceptions like no internet etc

I'm currently working in a project where the user needs to log in and after that i will check if the directory /cloud/user/Projects exists and if it doesn't i will create them. The code works, ...
2
votes
1answer
107 views

Code to accept resume and cover letter over FTP using C# [closed]

Having completed an independent coding task, I then asked a few professional developers for their feedback as to what they think of the project I presented. Given that I am not an expert c# programmer ...
1
vote
1answer
1k views

FTP File Upload Queue

This code implements an FTPManager class and is designed to be a place to insert file data to be sent later, without having the program wait for a potentially very ...
10
votes
1answer
502 views

Document Merger using PhpDocX

I'm developing a document merger that utilizes an FTP site containing hundreds of documents. FTP Connection Function ...
8
votes
1answer
178 views

Extract data from a DBMS, create a CSV dump and transfer it to an FTP server

First of all, my code does work as expected at least to some extent. The intention of the program is to extract data from a DBMS in order to create a CSV dump and transfer it to an FTP server. My two ...
4
votes
1answer
125 views

Immutable File Upload Server Configuration Class (FTP or Network Drive)

The application I'm working on needs to occasionally take pictures, and then send them to either an ftp server or a network drive (user configurable). To try to abstract away the differences between a ...
1
vote
0answers
27 views

Passive FTP port assignment synchronization

I've created the following class to manage the assignment of port numbers to passive FTP server sockets. Notice that Semaphore here is to make the thread wait in ...
1
vote
2answers
381 views

Processing files retrieved through FTP in parallel

I am busy creating a file processor that needs to get some files from an Ftp client download the file and save the data into the database. I have a two part question. How can i refactor the code to ...
7
votes
3answers
173 views

Downloading files from a Mozilla file server via FTP

All classes on GitHub repo This is the code for downloading files from a FTP-server running Mozilla Fileserver. FtpItem is the interface for the two classes ...
2
votes
1answer
2k views

Read decibel level from a USB meter, display it as a live visualization, and send it via FTP

This question was posed to me by someone in my university's athletics department who had a USB sound level meter and a simple Python script which printed the current sound level (he was provided with ...
8
votes
1answer
557 views

Function that recursively downloads entire directory is slow

I created this function to recursively copy an entire directory from an FTP server. It works just fine except that it is about 4 times slower than using FileZilla to do the same operation. It takes ...
6
votes
2answers
1k views

C# FTP class for interaction with FTP server (Download only)

I'm writing my own FTPclient for downloading files from my FTPserver as a project. So far I can download and go backwards/forwards in the folders using this code. How does it look? What could be done ...
4
votes
2answers
616 views

Multiple server FTP download class

I've written this a short time ago. Do you see anywhere I can improve my logic? This is my first python script. ...
5
votes
1answer
4k views

Convert zip to gzip and upload to S3 bucket

My code accesses an FTP server, downloads a .zip file, pushes the file contents as .gz to an AWS S3 bucket. ...
1
vote
1answer
1k views

Uploading and downloading files with FTP

I'm learning Python and decided to rewrite my FTP tool from Perl to Python. The program is able to up/download files, change the directory and list the files of the current directory. Is there ...
2
votes
1answer
867 views

Get all the PDF files from FTP server in different folders

Well, quite a biggie with all the foreach's. It works, it gets me 981 results, but there must be a way to shorten this code. Right? ...
1
vote
0answers
10k views

FTP client/server sockets

I'm working on a project using socket programming to design an FTP server/client application. This is the code so far. What I need to do is add authentication, I want users to be able to access ...
3
votes
1answer
4k views

Checking if a directory exists in FTP without relying on exception handling

I've written a method to check if a directory already exists on an FTP server. The only way I could see to make this work was to return a different result from the method if an exception is thrown - ...
7
votes
2answers
391 views

Refactoring a FTPHelper Class

I've written a FTPHelper class which should help to teach me more about code structure. I don't know what I don't know so I would really value feedback on how I can be laying out and thinking about my ...
5
votes
1answer
4k views

is_dir function for FTP/FTPS connections

I'm implementing an is_dir() function to determine if a given item is a directory or a file for FTP/FTPS connections. Currently, I have two methods: one using PHP's ...
3
votes
2answers
920 views

Is this FTP download code useful?

I have a Windows-service and this service will connect to an ftp server and do download, upload, and rename operations. My service runs every 30 seconds, so the ftp server will be busy during these ...
3
votes
3answers
5k views

FTP Download Function

This is an function that downloads a single file from an FTP server and saves it to disk This is my first time doing anything with FTP, please let me know if i have missed anything. ...