#ifndef _FILE_H_ #define _FILE_H_ #include #include #include struct file { struct list_head list; /* sscp->file_list */ char *path; bool remote; size_t size; /* size of this file */ }; struct chunk { struct file *f; size_t off; /* offset of this chunk on the file f */ size_t len; /* length of this chunk */ }; char *file_find_hostname(char *path); bool file_has_hostname(char *path); int file_is_directory(char *path, sftp_session sftp); int file_fill(sftp_session sftp, struct list_head *head, char **src_array, int count); #ifdef DEBUG void file_dump(struct list_head *head); #endif #endif /* _FILE_H_ */