AnyEve...xt::FS(3pm)

πŸ“¦ version 0.20, in ubuntu stonking

πŸ’– AnyEvent::FTP::Server::Context::FS β€” the perl 3pm manual, bestie edition πŸ’–

okay so this is a page from the User Contributed Perl Documentation section of the perl manual, and honestly? it's giving "the quiet one in the group chat who actually knows everything." no cap.


✨ NAME ✨

AnyEvent::FTP::Server::Context::FS β€” an FTP server context that uses a real file system. and before you ask: no transfers, bestie. it says so right there in the name of the game. πŸ’…


πŸ¦‹ VERSION πŸ¦‹

version 0.20


🌸 SYNOPSIS 🌸

here's the vibe, copy-paste ready:

use AnyEvent::FTP::Server;

my $server = AnyEvent::FTP::Server->new(
  default_context => 'AnyEvent::FTP::Server::Context::FS',
);

look at that. you set default_context and boom, you're That Girl running an FTP server on your actual disk. iconic. ✨


πŸŽ€ DESCRIPTION πŸŽ€

so real talk: this class is the base class for two other classes β€” AnyEvent::FTP::Server::Context::FSRO and AnyEvent::FTP::Server::Context::FSRW. it's the parent, the mother, the blueprint. it does not do the reading or the writing itself, that's for the children to figure out. main character energy, truly. πŸ‘‘


πŸ’œ ROLES πŸ’œ

this class consumes these roles. it ate and left no crumbs:

  • AnyEvent::FTP::Server::Role::Auth
  • AnyEvent::FTP::Server::Role::Help
  • AnyEvent::FTP::Server::Role::Old
  • AnyEvent::FTP::Server::Role::Type

🌈 ATTRIBUTES 🌈

πŸ“ cwd

my $dir = $context->cwd;

the current working directory, as a string. that's it. that's the whole thing. short and sweet, we love her. πŸ’–

🧚 rename_from

my $filename = $context-E<gt>rename_from;

the filename that the last FTP "RNFR" command specified. so like, whatever you said you wanted to rename from on the way in β€” she remembered it for you. 🫢

okay bestie i gotta be honest, the line above is written exactly how the manual writes it, -E<gt> and all. that's a POD escape thing that leaked into the rendered page. i'm not touching it, i don't make the rules, i just relay the lore. 😭

πŸ’… COMMANDS πŸ’…

on top of everything the roles up there already give you, this context serves up these FTP commands, in this exact order:

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

ten commands. a whole little deck. slay. πŸ”₯


🌟 AUTHOR 🌟

Author: Graham Ollis <plicease@cpan.org>

Contributors β€” give them their flowers, fr fr: 🌸

  • Ryo Okamoto
  • Shlomi Fish
  • JosΓ© JoaquΓ­n Atria

this software is copyright (c) 2017-2022 by Graham Ollis. respect the legacy, bestie.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like... go forth, remix, redistribute, whatever. just keep the terms. periodt. πŸ’…


and that's the whole page, we're done here!! πŸ¦‹βœ¨ this little writeup is perl v5.40.1, dated 2026-02-16, from the <rainbow>AnyEvent::FTP::Server::Context::FS(3pm)</rainbow> manual page. mwah. bye bestie, go read some more man pages, i'll be here. πŸ’–πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from