#include <stdio.h>
#include <locale.h>
#include <libintl.h>
-#include <sys/stat.h>
#include <vconf.h>
#include <glib.h>
#include <notification.h>
#define MMC_INFO_SIZE 256
-char default_path[][MS_FILE_NAME_LEN_MAX+1] = {
- {"Images"},
- {"Videos"},
- {"Sounds"},
- {"Downloads"},
-};
-
-#define DIR_NUM ((int)(sizeof(default_path)/sizeof(default_path[0])))
-
-void ms_make_default_path_mmc(const char *mount_path)
-{
- int i = 0;
- int ret = 0;
- char mmc_path[MS_FILE_NAME_LEN_MAX+1] = {0, };
-
- for (i = 0; i < DIR_NUM; ++i) {
- memset(mmc_path, 0, sizeof(mmc_path));
- snprintf(mmc_path, sizeof(mmc_path), "%s/%s", mount_path, default_path[i]);
- if (!g_file_test(mmc_path, G_FILE_TEST_IS_DIR)) {
- MS_DBG("%s path did not exist", mmc_path);
- ret = mkdir(mmc_path, 0770);
- if (ret < 0)
- MS_DBG_ERR("mkdir failed");
-
- /*this fuction for emulator*/
- /*at the first time, the directroies are made permission 755*/
- ret = chmod(mmc_path, 0770);
- if (ret != 0)
- MS_DBG_STRERROR("chmod failed");
- }
- }
-}
-
static int __get_contents(const char *filename, char *buf)
{
FILE *fp;