<commit_before><?php
/**
 * $Id$
 *
 * Collection of utilities to deal with FTP/FTPES servers
 *
 * upload and download has been verified to work with a ~10MB file (over ftp and ftpes)
 *
 * URL schemes:
 * ftp:// - Classic FTP
 * ftpes:// - FTP over Explicit SSL/TLS
 * ftps:// - FTP over Implicit SSL/TLS (XXX NOT SUPPORTED) - vsftp 2.0.7 support this, try it out
 * sftp:// - SSH FTP (XXX not supported here!!!)
 *
 * http://en.wikipedia.org/wiki/FTPS
 *
 * @author <NAME>, 2008-2009 <<EMAIL>>
 */

//XXX: rename to "client_ftp.php", it is both input & output...

class ftp
{
	//XXX to support implicit SSL we might need to do a full ftp implementation, or maybe curl can help us?
	//    more "full" ftp implementation: http://kacke.de/php_samples/source.php?f=ftp.cls.php<commit_msg>added TODO notes<commit_after><?php
/**
 * $Id$
 *
 * Collection of utilities to deal with FTP/FTPES servers
 *
 * upload and download has been verified to work with a ~10MB file (over ftp and ftpes)
 *
 * URL schemes:
 * ftp:// - Classic FTP
 * ftpes:// - FTP over Explicit SSL/TLS
 * ftps:// - FTP over Implicit SSL/TLS (XXX NOT SUPPORTED) - vsftp 2.0.7 support this, try it out
 * sftp:// - SSH FTP (XXX not supported here!!!)
 *
 * http://en.wikipedia.org/wiki/FTPS
 *
 * @author <NAME>, 2008-2009 <<EMAIL>>
 */

//XXX: rename to "client_ftp.php", it is both input & output...

//XXX sftp support, use CURL CURLPROTO_SFTP .... http://phpseclib.sourceforge.net/documentation/net.html#net_sftp

//XXX research scp support

class ftp
{
	//XXX to support implicit SSL we might need to do a full ftp implementation, or maybe curl can help us?
	//    more "full" ftp implementation: http://kacke.de/php_samples/source.php?f=ftp.cls.php
{'fraction_non_alphanumeric': 0.1372093023255814, 'fraction_numerical': 0.015116279069767442, 'mean_word_length': 3.157004830917874, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2955511', 'n_tokens_mistral': 628, 'n_tokens_neox': 579, 'n_words': 210}