^(And|So|But) = Rewrite it somehow?
\. But: Rewrite it somehow?
\. So : Rewrite without "so" ?
- dir :directory
+ dir [^=]:directory
sub-director:subdirector
you'd:you would
you'll:you will
# we allow some extra in source code
- name: 'badwords'
- run: grep -Ev '(\\bwill| url | dir )' .github/scripts/badwords.txt | .github/scripts/badwords.pl src lib include
+ run: grep -Ev '(\\bwill)' .github/scripts/badwords.txt | .github/scripts/badwords.pl src lib include
FTP_STOR_PREQUOTE,
FTP_LIST_PREQUOTE,
FTP_POSTQUOTE,
- FTP_CWD, /* change dir */
- FTP_MKD, /* if the dir did not exist */
+ FTP_CWD, /* change directory */
+ FTP_MKD, /* if the directory did not exist */
FTP_MDTM, /* to figure out the datestamp */
FTP_TYPE, /* to set type when doing a head-like request */
- FTP_LIST_TYPE, /* set type when about to do a dir list */
+ FTP_LIST_TYPE, /* set type when about to do a directory list */
FTP_RETR_LIST_TYPE,
FTP_RETR_TYPE, /* set type when about to RETR a file */
FTP_STOR_TYPE, /* set type when about to STOR a file */
static bool should_urlencode(struct Curl_str *service_name)
{
/*
- * These services require unmodified (not additionally url encoded) URL
+ * These services require unmodified (not additionally URL-encoded) URL
* paths.
* should_urlencode == true is equivalent to should_urlencode_uri_path
- * from the AWS SDK. Urls are already normalized by the curl url parser
+ * from the AWS SDK. Urls are already normalized by the curl URL parser
*/
if(curlx_str_cmp(service_name, "s3") ||
struct Curl_ssl_scache_entry;
struct ssl_primary_config {
- char *CApath; /* certificate dir (does not work on Windows) */
+ char *CApath; /* certificate directory (does not work on Windows) */
char *CAfile; /* certificate to verify peer against */
char *issuercert; /* optional issuer certificate filename */
char *clientcert;
else if(!strncmp(cmd, "mkdir ", 6)) {
if(*cp)
return return_quote_error(data, sshc);
- /* create dir */
+ /* create directory */
myssh_to(data, sshc, SSH_SFTP_QUOTE_MKDIR);
return SSH_NO_ERROR;
}
return SSH_NO_ERROR;
}
else if(!strncmp(cmd, "rmdir ", 6)) {
- /* delete dir */
+ /* delete directory */
if(*cp)
return return_quote_error(data, sshc);
myssh_to(data, sshc, SSH_SFTP_QUOTE_RMDIR);
++sshc->slash_pos;
if(rc < 0) {
/*
- * Abort if failure was not that the dir already exists or the
- * permission was denied (creation might succeed further down the
- * path) - retry on unspecific FAILURE also
+ * Abort if failure was not that the directory already exists or
+ * the permission was denied (creation might succeed further down
+ * the path) - retry on unspecific FAILURE also
*/
err = sftp_get_error(sshc->sftp_session);
if((err != SSH_FX_FILE_ALREADY_EXISTS) &&
data->req.size = -1; /* make sure this is unknown at this point */
sshc->actualcode = CURLE_OK; /* reset error code */
- sshc->secondCreateDirs = 0; /* reset the create dir attempt state
+ sshc->secondCreateDirs = 0; /* reset the create directory attempt state
variable */
Curl_pgrsSetUploadCounter(data, 0);
else if(!strncmp(cmd, "mkdir ", 6)) {
if(*cp)
return_quote_error(data, sshc);
- /* create dir */
+ /* create directory */
myssh_state(data, sshc, SSH_SFTP_QUOTE_MKDIR);
return result;
}
else if(!strncmp(cmd, "rmdir ", 6)) {
if(*cp)
return_quote_error(data, sshc);
- /* delete dir */
+ /* delete directory */
myssh_state(data, sshc, SSH_SFTP_QUOTE_RMDIR);
return result;
}
++sshc->slash_pos;
if(rc < 0) {
/*
- * Abort if failure was not that the dir already exists or the
- * permission was denied (creation might succeed further down the
- * path) - retry on unspecific FAILURE also
+ * Abort if failure was not that the directory already exists or
+ * the permission was denied (creation might succeed further down
+ * the path) - retry on unspecific FAILURE also
*/
unsigned long sftperr = libssh2_sftp_last_error(sshc->sftp_session);
if((sftperr != LIBSSH2_FX_FILE_ALREADY_EXISTS) &&
return CURLE_FAILED_INIT;
data->req.size = -1; /* make sure this is unknown at this point */
- sshc->secondCreateDirs = 0; /* reset the create dir attempt state
+ sshc->secondCreateDirs = 0; /* reset the create directory attempt state
variable */
Curl_pgrsSetUploadCounter(data, 0);
char *quote_path1; /* two generic pointers for the QUOTE stuff */
char *quote_path2;
- char *homedir; /* when doing SFTP we figure out home dir in the
- connect phase */
+ char *homedir; /* when doing SFTP we figure out home directory
+ in the connect phase */
/* end of READDIR stuff */
int secondCreateDirs; /* counter use by the code to see if the
BIT(autoreferer); /* automatically set referer */
BIT(show_headers); /* show headers to data output */
BIT(no_body); /* do not get the body */
- BIT(dirlistonly); /* only get the FTP dir list */
+ BIT(dirlistonly); /* only get the FTP directory list */
BIT(unrestricted_auth); /* Continue to send authentication (user+password)
when following redirects, even when hostname
changed */
goto clean;
/* inputpath might be NULL or a valid pointer now */
- /* set gateway parts in input url */
+ /* set gateway parts in input URL */
if(curl_url_set(uh, CURLUPART_SCHEME, gwscheme, CURLU_URLENCODE) ||
curl_url_set(uh, CURLUPART_HOST, gwhost, CURLU_URLENCODE) ||
curl_url_set(uh, CURLUPART_PORT, gwport, CURLU_URLENCODE))
CURLcode result;
*added = FALSE;
- /* Check we have a url */
+ /* Check we have a URL */
if(!config->url_list || !config->url_list->url) {
helpf("(%d) no URL specified", CURLE_FAILED_INIT);
result = CURLE_FAILED_INIT;
/*
* Adds the filename to the URL if it does not already have one.
- * url will be freed before return if the returned pointer is different
+ * URL will be freed before return if the returned pointer is different
*/
CURLcode add_file_name_to_url(CURL *curl, char **inurlp, const char *filename)
{
VAR_INPUT_URLQUERY,
VAR_INPUT_URLFRAGMENT,
VAR_INPUT_URLZONEID,
- /* the same ones again for url *effective* */
+ /* the same ones again for URL *effective* */
VAR_INPUT_URLESCHEME, /* keep this the first URLE* variable */
VAR_INPUT_URLEUSER,
VAR_INPUT_URLEPASSWORD,