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.
1
vote
1answer
133 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 ...
8
votes
1answer
97 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
69 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
41 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
19 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
96 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
127 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
248 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 ...
7
votes
1answer
201 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
678 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
118 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
939 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
0answers
35 views
Uploading LDAP search results to an FTP server
I know this is quite a generic question, I was hoping it could stay open so I can try to improve my styles.
Basically, I have an application that connects to LDAP, performs searches, and produces a ...
1
vote
1answer
291 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
448 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
5k 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 ...
2
votes
1answer
2k 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
300 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
2k 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
760 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
4k 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.
...