AnyEve...Memory(3pm)
β¨ AnyEvent::FTP::Server::Context::Memory π
okay bestie so this is a page from the User Contributed Perl Documentation (the 3pm girlies know) and it's all about a lil module called AnyEvent::FTP::Server::Context::Memory β an FTP Server client context class with full read/write access. she does it all, no cap π
πΈ NAME πΈ
AnyEvent::FTP::Server::Context::Memory β FTP Server client context class with full read/write access. she's the context that keeps everything in memory. iconic behavior honestly.
π VERSION π
version 0.20 π¦
β¨ SYNOPSIS β¨
okay so here's how you actually use her:
use AnyEvent::FTP::Server;
my $server = AnyEvent::FTP::Server->new(
default_context => 'AnyEvent::FTP::Server::Context::Memory',
);
that's it. that's the whole vibe π«Ά
π DESCRIPTION π
so this class hands AnyEvent::FTP::Server a context that uses memory to do the storage thing. it's giving "my brain is the filesystem" energy π§ β¨
β οΈ bestie listen β once the server process terminates, all data stored is lost. like, poof. gone. not coming back. it lives in RAM and RAM does not do permanence, periodt π
also note that this implementation is incomplete. she's a work in progress, we love her anyway π
π¦ ROLES π¦
this class consumes these roles (think of them as the personality traits she inherited, iykyk):
AnyEvent::FTP::Server::Role::AuthAnyEvent::FTP::Server::Role::HelpAnyEvent::FTP::Server::Role::OldAnyEvent::FTP::Server::Role::Type
π ATTRIBUTES π
store
has containing the directory tree for the context. like, the whole closet of directories, organized ποΈπ
cwd
the current working directory for the context. this will be an Path::Class::Dir. so she knows exactly where she's standing at all times, main character energy fr fr π
find
returns the hash (for a directory) or the scalar (for a file) of a file in the filesystem. so like β dir gets a hash, file gets a scalar. don't mix them up bestie, that's the whole point πΈ
rename_from
my $filename = $context->rename_from;
the filename specified by the last FTP RNFR command π«
π₯ COMMANDS π₯
on top of the commands the roles above already give you, this context also provides these FTP commands:
CWDCDUPPWDSIZEMKDRMDDELERNFRRNTOSTATNLST
she's got range, okay?! every single one of them, we're not skipping a single command in this house π β¨
π AUTHOR π
Author: Graham Ollis <plicease@cpan.org>
Contributors:
- Ryo Okamoto
- Shlomi Fish
- JosΓ© JoaquΓn Atria
shoutout to the whole squad, we love a collaborative moment π«Άπ
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2017-2022 by Graham Ollis.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, open source queen π
and that's the whole page babes!! this was perl v5.40.1, dated 2026-02-16, brought to you by AnyEve...Memory(3pm) (yes they truncated her name in the footer, tragic, but we still know who she is π). anyway mwah, go write some FTP servers in RAM, love u, bye πβ¨π
π¦ where this page comes from
- ubuntu stonking: libanyevent-ftp-perl 0.20-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms