{"id":13804507,"url":"https://github.com/jNizM/Class_FTP","last_synced_at":"2025-05-13T17:32:25.046Z","repository":{"id":75220808,"uuid":"282894414","full_name":"jNizM/Class_FTP","owner":"jNizM","description":"AutoHotkey wrapper for FTP Sessions","archived":false,"fork":false,"pushed_at":"2020-08-27T13:33:35.000Z","size":7,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-04T01:03:42.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"AutoHotkey","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jNizM.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}},"created_at":"2020-07-27T12:39:05.000Z","updated_at":"2024-02-14T20:24:54.000Z","dependencies_parsed_at":"2023-02-26T23:31:29.666Z","dependency_job_id":null,"html_url":"https://github.com/jNizM/Class_FTP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jNizM%2FClass_FTP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jNizM%2FClass_FTP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jNizM%2FClass_FTP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jNizM%2FClass_FTP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jNizM","download_url":"https://codeload.github.com/jNizM/Class_FTP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225247889,"owners_count":17444135,"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":[],"created_at":"2024-08-04T01:00:49.102Z","updated_at":"2024-11-18T20:32:03.799Z","avatar_url":"https://github.com/jNizM.png","language":"AutoHotkey","readme":"# Class_FTP\n AutoHotkey wrapper for FTP Sessions ([msdn-docs](https://docs.microsoft.com/en-us/windows/win32/wininet/ftp-sessions))\n\n\n## Examples\n\n**Writes a file to the server.**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nFTP.PutFile(hSession, \"C:\\Temp\\testfile.txt\", \"testfile.txt\")\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Retrieves a file from the server.**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nFTP.GetFile(hSession, \"testfile.txt\", \"C:\\Temp\\testfile.txt\")\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Retrieves the file size of the requested FTP resource.**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nMsgBox % FTP.GetFileSize(hSession, \"testfile.txt\")\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Deletes a file from the server.**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nFTP.DeleteFile(hSession, \"testfile.txt\")\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Creates a new directory on the server.**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nFTP.CreateDirectory(hSession, \"Test_Folder\")\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Changes the client's current directory on the server.**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nFTP.SetCurrentDirectory(hSession, \"Test_Folder\")\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Returns the client's current directory on the server.**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nMsgBox % FTP.GetCurrentDirectory(hSession)\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Deletes a directory on the server.**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nFTP.RemoveDirectory(hSession, \"Test_Folder\")\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Enumerate all Files in root directory. (!!! EXPERIMENTAL !!!)**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nfor k, File in FTP.FindFiles(hSession)\n\tMsgBox % File.FileName\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Enumerate all Files in a subdirectory. (!!! EXPERIMENTAL !!!)**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nfor k, File in FTP.FindFiles(hSession, \"/Folder 2\")\n\tMsgBox % File.FileName\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Enumerate all Folders in root directory. (!!! EXPERIMENTAL !!!)**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nfor k, Folder in FTP.FindFolders(hSession)\n\tMsgBox % Folder.FileName\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n**Enumerate all Folders in a subdirectory. (!!! EXPERIMENTAL !!!)**\n```AutoHotkey\nhFTP := FTP.Open(\"AHK-FTP\")\nhSession := FTP.Connect(hFTP, \"ftp.example.com\", 21, \"user\", \"passwd\")\nfor k, Folder in FTP.FindFolders(hSession, \"/Folder 2\")\n\tMsgBox % Folder.FileName\nFTP.Disconnect(hSession)\nFTP.Close(hFTP)\n```\n\n\n## Questions / Bugs / Issues\nReport any bugs or issues on the [AHK Thread](https://www.autohotkey.com/boards/viewtopic.php?f=6\u0026t=79142). Same for any questions.\n\n\n## Copyright and License\n[The Unlicense](LICENSE)\n\n\n## Donations (PayPal)\n[Donations are appreciated if I could help you](https://www.paypal.me/smithz)","funding_links":["https://www.paypal.me/smithz"],"categories":["Libraries"],"sub_categories":["Networking"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FjNizM%2FClass_FTP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FjNizM%2FClass_FTP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FjNizM%2FClass_FTP/lists"}