Ara funciona en Windows
This commit is contained in:
8
respak.c
8
respak.c
@@ -4,8 +4,12 @@
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
//#include <unistd.h>
|
||||
#ifdef WIN32
|
||||
#include "dirent_win32.h"
|
||||
#else
|
||||
#include <dirent.h>
|
||||
#endif
|
||||
|
||||
#define OP_PACK 0
|
||||
#define OP_UNPACK 1
|
||||
@@ -101,7 +105,7 @@ void do_pack()
|
||||
{
|
||||
while (ep = readdir(d))
|
||||
{
|
||||
if (ep->d_type != 4)
|
||||
if (ep->d_type != 4 && ep->d_name[0] != '.')
|
||||
{
|
||||
char file_name[100] = "";
|
||||
strcpy(file_name, data_directory_name);
|
||||
|
||||
Reference in New Issue
Block a user