The following script allows to additionally recreate the original foldertree on the a Canon camera (tested with SD-card from Canon PowerShot A2200):
#!/usr/bin/perl -w
$jhead_bin = '/usr/bin/jhead';
$dir = (@ARGV > 0) ? $ARGV[0] : '.';
$dir =~ s/\/*$//; # truncate trailing '/'s
@recovered_files ...
Search found 3 matches
- 04 Jan 2018, 18:10
- Forum: File recovery
- Topic: Enhanced "After Using PhotoRec" script
- Replies: 2
- Views: 1614
- 04 Jan 2018, 18:05
- Forum: File recovery
- Topic: Enhanced "After Using PhotoRec" script
- Replies: 2
- Views: 1614
Re: Enhanced "After Using PhotoRec" script
An additional enhancement allows to pass the directory to work on by a command line argument:
#!/usr/bin/perl -w
$jhead_bin = '/usr/bin/jhead';
$dir = (@ARGV > 0) ? $ARGV[0] : '.';
$dir =~ s/\/*$//; # truncate trailing '/'s
@recovered_files = `ls $dir`;
foreach $file (@recovered_files) {
chomp ...
#!/usr/bin/perl -w
$jhead_bin = '/usr/bin/jhead';
$dir = (@ARGV > 0) ? $ARGV[0] : '.';
$dir =~ s/\/*$//; # truncate trailing '/'s
@recovered_files = `ls $dir`;
foreach $file (@recovered_files) {
chomp ...
- 03 Jan 2018, 00:35
- Forum: File recovery
- Topic: Enhanced "After Using PhotoRec" script
- Replies: 2
- Views: 1614
Enhanced "After Using PhotoRec" script
Hi all,
This is my first post in this forum, so please be tolerant if I do formal mistakes.
In the wiki on https://www.cgsecurity.org/wiki/After_Using_PhotoRec there is a script for recovering the original file names from a Canon camera. It does not work for my files, recovered from a Canon A2200 ...
This is my first post in this forum, so please be tolerant if I do formal mistakes.
In the wiki on https://www.cgsecurity.org/wiki/After_Using_PhotoRec there is a script for recovering the original file names from a Canon camera. It does not work for my files, recovered from a Canon A2200 ...