MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / libssh_stat_file

Function libssh_stat_file

libavformat/libssh.c:158–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static av_cold void libssh_stat_file(LIBSSHContext *libssh)
159{
160 sftp_attributes stat;
161
162 if (!(stat = sftp_fstat(libssh->file))) {
163 av_log(libssh, AV_LOG_WARNING, "Cannot stat remote file.\n");
164 libssh->filesize = -1;
165 } else {
166 libssh->filesize = stat->size;
167 sftp_attributes_free(stat);
168 }
169}
170
171static av_cold int libssh_close(URLContext *h)
172{

Callers 1

libssh_openFunction · 0.85

Calls 1

av_logFunction · 0.85

Tested by

no test coverage detected