Index: trunk/platform/ixus200_sd980/shooting.c
===================================================================
--- trunk/platform/ixus200_sd980/shooting.c	(revision 1632)
+++ trunk/platform/ixus200_sd980/shooting.c	(revision 1663)
@@ -126,11 +126,20 @@
 }
 
+#if defined(CAM_DATE_FOLDER_NAMING)
+void get_target_dir_name(char *out) {
+    extern void _GetImageFolder(char*,int,int,int);
+    out[0] = 'A';
+    _GetImageFolder(out+1,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL));
+    out[15] = '\0';
+}
+#else
 long get_target_dir_num() {
-	long n;
+    long n;
 
-	n = get_file_next_counter();
-	n = (n>>18)&0x3FF;
-	return n;
+    n = get_file_next_counter();
+    n = (n>>18)&0x3FF;
+    return n;
 }
+#endif
 
 int circle_of_confusion = 5;
