Comments (2)
Hi,
I'm not sure to understand your question, STOR
already calls your handlers (OpenFile
or GetHandle
based on what you implemented), so you can do anything you want inside your own handler.
Additionally you can use GetLastCommand if you want to check that your handler was triggered by a STOR
command. What is missing here?
from ftpserverlib.
Thanks for the quick reply!
Now I see that I can make my own implementation of the afero.Fs
interface and return from Fs.OpenFile
my implementation of afero.File
with my own Close
method where I could do whatever I need to do right after a file is closed.
Thanks for the help!
from ftpserverlib.
Related Issues (20)
- PASV command crash
- FR: customize error codes HOT 6
- LIST command doesn't work for file HOT 1
- Dependency Dashboard
- Add support for wildcards in LIST HOT 2
- Restore IPv6 support HOT 1
- MLSD Response: 550 Could not list: Not supported HOT 1
- MLST gives incorrect response HOT 6
- Unable to catch abort transfer from client HOT 1
- protocol not available, Unable to open transfer HOT 3
- Could not list the contents of the bucket , throws 550 error (afero-s3) HOT 1
- APPE should create a file if it does not yet exist
- Unable to use IPv6 HOT 3
- Transmit / LibNcFTP 3.2.3 stop working after issuing the FEAT command. HOT 1
- Error: Connection timed out after 20 seconds of inactivity HOT 1
- IdleTimeout doesn't factor in active data connection (large or slow transfers) HOT 2
- [FR] Upload file size limit HOT 1
- Request: Support MODE command HOT 3
- FTP Progress
- Upload with lftp not working when TLS is used HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftpserverlib.