Search found 5 matches

by leonardorame
06 May 2020, 12:01
Forum: File undelete
Topic: TestDisk NTFS undelete - filter by year
Replies: 5
Views: 11976

Re: TestDisk NTFS undelete - filter by year

I finally implemented the "Date range filter", you'll have to add this block of code to ntfs_udl.c just before the *case 'f';*


case 'd':
{
const char *dateRange=ask_string_ncurses("Date range (YYYYMMDD-YYYMMDD)");
if(dateRange!=NULL && dateRange[0]!='\0')
{
char from[9];
char to[9 ...
by leonardorame
05 May 2020, 12:38
Forum: File undelete
Topic: TestDisk NTFS undelete - filter by year
Replies: 5
Views: 11976

Re: TestDisk NTFS undelete - filter by year

This little program converts two dates YYYYMMDD-YYYYMMDD to epoch. I'll add this to the Date Filter later.


#include <stdio.h>
#include <string.h>

#define __USE_XOPEN
#include <time.h>

int main()
{
char src[] = "20200101-20200131";
char from[9];
char to[9];
memset(from, '\0', sizeof(from ...
by leonardorame
04 May 2020, 16:28
Forum: File undelete
Topic: TestDisk NTFS undelete - filter by year
Replies: 5
Views: 11976

Re: TestDisk NTFS undelete - filter by year

As a starting point I made this:

case 'd':
{
const char *needle=ask_string_ncurses("Date filter ");
if(needle!=NULL && needle[0]!='\0')
{
td_list_for_each(file_walker,&dir_list->list)
{
file_info_t *file_info;
file_info=td_list_entry(file_walker, file_info_t, list);
if((file_info->status ...
by leonardorame
04 May 2020, 14:28
Forum: File undelete
Topic: TestDisk NTFS undelete - filter by year
Replies: 5
Views: 11976

Re: TestDisk NTFS undelete - filter by year

Thanks for the fix, I wasn't able to test because the problematic PC was powered off on the remote side. Now I compiled the new version and tested, it works.


screenshot_5.png

Now, could you help me implement the Date filter?. It would be great to have the possibility to filter between two days ...
by leonardorame
02 May 2020, 18:58
Forum: File undelete
Topic: TestDisk NTFS undelete - filter by year
Replies: 5
Views: 11976

TestDisk NTFS undelete - filter by year

Hi Christophe, last night I've sent you an email with the following content, maybe it's in your spam folder, please take a look.

I'm using your wonderful TestDisk to recover a lot of files deleted from an USB external NTFS disk.

I can recover the files by searching by name (using the 'f' shortcut ...