{"id":21822962,"url":"https://github.com/justcabbage/ftpmanager","last_synced_at":"2025-03-21T11:26:02.639Z","repository":{"id":265098508,"uuid":"785867889","full_name":"JustCabbage/FTPManager","owner":"JustCabbage","description":"A Simple FTP Manager Library Made In C#","archived":false,"fork":false,"pushed_at":"2024-04-12T19:52:02.000Z","size":249,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T07:43:19.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JustCabbage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-12T19:51:33.000Z","updated_at":"2024-05-02T09:24:11.000Z","dependencies_parsed_at":"2024-11-27T17:18:48.786Z","dependency_job_id":"87859045-26a6-4ddd-8e1e-da7c17889b03","html_url":"https://github.com/JustCabbage/FTPManager","commit_stats":null,"previous_names":["justcabbage/ftpmanager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustCabbage%2FFTPManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustCabbage%2FFTPManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustCabbage%2FFTPManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustCabbage%2FFTPManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JustCabbage","download_url":"https://codeload.github.com/JustCabbage/FTPManager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244788806,"owners_count":20510438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","ftp","library","networking"],"created_at":"2024-11-27T17:18:46.449Z","updated_at":"2025-03-21T11:26:02.599Z","avatar_url":"https://github.com/JustCabbage.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FTPManager [![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n\n\n# What is FTPManager ?\n\nThis is just a simple proof of concept of how FTP can be implemented in C#.\n\n# What are FTPManager's features ?\n\n- [+] Create a directory\n- [+] List a directory and its subfolder details\n- [+] Delete a directory\n- [+] Rename files and directories\n- [+] Download and Upload files\n- [+] Custom logging system\n- [+] Modularity with the MethodConnection() function\n\n# Examples:\n\n## Basic Connection\n```csharp\nusing System;\nusing SimpleFTPManager;\nusing SimpleFTPManager.Modules;\n\nnamespace Tests\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            FTPManager ftp = new FTPManager();\n            Console.WriteLine(ftp.Initialise(\"127.0.0.1\", 21, \"optionalUser\", \"optionalPass\").WelcomeMessage); // Initialise returns a FtpWebResponse\n        }\n    }\n}\n```\n## Directory Creation and Directory Listing\n```csharp\nusing System;\nusing SimpleFTPManager;\nusing SimpleFTPManager.Modules;\n\nnamespace Tests\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            FTPManager ftp = new FTPManager();\n            Console.WriteLine(ftp.Initialise(\"127.0.0.1\", 21, \"optionalUser\", \"optionalPass\").WelcomeMessage); // Initialise returns a FtpWebResponse\n            CreateDir.CreateDirectory(\"test/testingFTP\");\n            Console.WriteLine(string.Join(\" , \", ListDir.ListDirectory(\"/test\"))); // ListDirectory returns a string[], which can be printed onto the console like this.\n        }\n    }\n}\n```\n## Directory Deletion\n```csharp\nusing System;\nusing SimpleFTPManager;\nusing SimpleFTPManager.Modules;\n\nnamespace Tests\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            FTPManager ftp = new FTPManager();\n            Console.WriteLine(ftp.Initialise(\"127.0.0.1\", 21, \"optionalUser\", \"optionalPass\").WelcomeMessage); // Initialise returns a FtpWebResponse\n            DeleteDir.DeleteDirectory(\"test/testingFTP\");\n            Console.WriteLine(string.Join(\" , \", ListDir.ListDirectory(\"/test\"))); // ListDirectory returns a string[], which can be printed onto the console like this.\n        }\n    }\n}\n```\n\n## List Directory Details\n```csharp\nusing System;\nusing SimpleFTPManager;\nusing SimpleFTPManager.Modules;\n\nnamespace Tests\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            FTPManager ftp = new FTPManager();\n            Console.WriteLine(ftp.Initialise(\"127.0.0.1\", 21, \"optionalUser\", \"optionalPass\").WelcomeMessage); // Initialise returns a FtpWebResponse\n            ListDirDetail.ListDirectoryDetails(\"test/testingFTP\");\n            Console.WriteLine(string.Join(\" , \", ListDir.ListDirectory(\"/test\"))); // ListDirectory returns a string[], which can be printed onto the console like this.\n        }\n    }\n}\n```\n\n\n## Rename\n```csharp\nusing System;\nusing SimpleFTPManager;\nusing SimpleFTPManager.Modules;\n\nnamespace Tests\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            FTPManager ftp = new FTPManager();\n            Console.WriteLine(ftp.Initialise(\"127.0.0.1\", 21, \"optionalUser\", \"optionalPass\").WelcomeMessage); // Initialise returns a FtpWebResponse\n            Ren.Rename(\"/test/testingFTP/\",\"/test/testingFTPRename\");\n            Console.WriteLine(string.Join(\" , \", ListDir.ListDirectory(\"/test\"))); // ListDirectory returns a string[], which can be printed onto the console like this.\n        }\n    }\n}\n```\n\n\n## Upload and Download Files\n```csharp\nusing System;\nusing SimpleFTPManager;\nusing SimpleFTPManager.Modules;\n\nnamespace Tests\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            FTPManager ftp = new FTPManager();\n            Console.WriteLine(ftp.Initialise(\"127.0.0.1\", 21, \"optionalUser\", \"optionalPass\").WelcomeMessage); // Initialise returns a FtpWebResponse\n            Upload.UploadFile(\"./file.txt\",\"/test/testingFTP/file.txt\");\n            Console.WriteLine(string.Join(\" , \", ListDir.ListDirectory(\"/test/testingFTP\"))); // ListDirectory returns a string[], which can be printed onto the console like this.\n            Download.DownloadFile(\"/test/testingFTP/file.txt\",\"./file.txt\");\n        }\n    }\n}\n```\n\n# Credits\n- Colorful.Console\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustcabbage%2Fftpmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustcabbage%2Fftpmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustcabbage%2Fftpmanager/lists"}