Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
MiaRec FTPFS is a PyFilesystem interface to FTP/FTPS storage.
This a fork of the builtin FTPFS class from PyFileSystem2 project, written by Will McGugan (email willmcgugan@gmail.com).
The code was modified by MiaRec team to fullfill our needs.
Requires Python 3.6+. A support of Python 2.7 is removed.
Opener protocol prefixes are mftp://
and mftps://
for FTP and FTP-over-TLS respectively (instead of the original ftp://
and ftps://
)
Add Implicit TLS support
Fix bugs in Explicit TLS implementation
Automatically try to re-open FTP connection on the next operation in case of network issues.
Previously, the FTPFS
object was stuck in error state, and any operations on the file system instance, like openbin()
, listdir()
, etc, were failing infinitely.
Better error handling. All FTP protocol-specific and SSL errors are converted into corresponding FSError
exception
You can install FTPFS from pip as follows:
pip install miarec_ftpfs
This will install the most recent stable version.
Alternatively, if you want the cutting edge code, you can check out the GitHub repos at https://github.com/miarec/miarec_ftpfs
Open an FTPFS by explicitly using the constructor:
from fs.ftpfs import FTPFS
FTPFS("demo.wftpserver.com")
Or via an FS URL:
ftp_fs = fs.open_fs('mftp://test.rebex.net')
Or via an FS URL, using TLS:
ftp_fs = fs.open_fs('mftps://demo.wftpserver.com')
You can also use a non-anonymous username, and optionally a password, even within a FS URL:
ftp_fs = FTPFS("test.rebex.net", user="demo", passwd="password")
ftp_fs = fs.open_fs('mftp://demo:password@test.rebex.net')
Connecting via a proxy is supported. If using a FS URL, the proxy URL will need to be added as a URL parameter:
ftp_fs = FTPFS("ftp.ebi.ac.uk", proxy="test.rebex.net")
ftp_fs = fs.open_fs('mftp://ftp.ebi.ac.uk/?proxy=test.rebex.net')
Automated unit tests are run on GitHub Actions
To run the tests locally, do the following.
Create activate python virtual environment:
python -m vevn venv
source venv\bin\activate
Install the project and test dependencies:
pip install -e ".[test]"
Run tests:
pytest
FAQs
FTP filesystem for PyFilesystem2
We found that miarec-ftpfs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.