AnyEve...Memory(3pm)

πŸ“¦ version 0.20, in ubuntu stonking

✨ 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::Auth
  • AnyEvent::FTP::Server::Role::Help
  • AnyEvent::FTP::Server::Role::Old
  • AnyEvent::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:

  • CWD
  • CDUP
  • PWD
  • SIZE
  • MKD
  • RMD
  • DELE
  • RNFR
  • RNTO
  • STAT
  • NLST

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 πŸ«ΆπŸ’œ


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