Lines Matching refs:attr
338 sftp_attributes attr = NULL;
346 if (attr)
347 sftp_attributes_free(attr);
348 attr = sftp_readdir(libssh->sftp, libssh->dir);
349 if (!attr) {
355 } while (!strcmp(attr->name, ".") || !strcmp(attr->name, ".."));
357 entry->name = av_strdup(attr->name);
358 entry->group_id = attr->gid;
359 entry->user_id = attr->uid;
360 entry->size = attr->size;
361 entry->access_timestamp = INT64_C(1000000) * attr->atime;
362 entry->modification_timestamp = INT64_C(1000000) * attr->mtime;
363 entry->filemode = attr->permissions & 0777;
364 switch(attr->type) {
381 sftp_attributes_free(attr);
399 sftp_attributes attr = NULL;
405 if (!(attr = sftp_stat(libssh->sftp, path))) {
410 if (attr->type == SSH_FILEXFER_TYPE_DIRECTORY) {
425 if (attr)
426 sftp_attributes_free(attr);