#include <sys/stat.h>
#include <sys/param.h>
#include <test_stat_file.c>
void
test_stat_dir(char *url)
{
struct ftpstat fs;
char path[MAXPATHLEN];
test_login(url);
snprintf(path, sizeof(path), "%s/libfget_test/dir1", ftpurl.fu_path);
test_stat_aux(path, &fs, 1);
if (! S_ISDIR(fs.fs_mode))
{
fprintf(stderr, "S_ISDIR() is false for \"%s\"!\n", path);
exit(1);
}
}