Author Topic: How to copy several folders and keep the directory structures?  (Read 6342 times)

Offline photostrupp

  • Newcomer
  • *
  • Posts: 16
    • View Profile
    • Christian Strupp Photographer
Hi,

I am using PM 4.5.3.2 on Win XP Pro, 2,5 GB RAM.
There is a boring copy task I would like to automate:

Several (around 20) folders in the 3rd or 4th directory level shall be copied to another HDD, building up there the same directory structure as on the source HDD. There are many folders in the upper levels which shall not be copied.
I tried serveral options in the "ingest" dialog, but did not manage it.
Is there a way to do that?

Thanks and regards, Christian




Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25054
    • View Profile
    • Camera Bits, Inc.
Re: How to copy several folders and keep the directory structures?
« Reply #1 on: August 22, 2008, 12:48:09 PM »
Christian,

I am using PM 4.5.3.2 on Win XP Pro, 2,5 GB RAM.
There is a boring copy task I would like to automate:

Several (around 20) folders in the 3rd or 4th directory level shall be copied to another HDD, building up there the same directory structure as on the source HDD. There are many folders in the upper levels which shall not be copied.
I tried serveral options in the "ingest" dialog, but did not manage it.
Is there a way to do that?

None that I can think of, sorry.

-Kirk

Offline vAfotoriporter

  • Uber Member
  • ******
  • Posts: 1046
    • View Profile
    • Attila Volgyi photojournalist
Re: How to copy several folders and keep the directory structures?
« Reply #2 on: August 23, 2008, 04:08:19 AM »
If you can point to images in the folders you want to be copied than use the {folder}, {folderpath}, and {path} variables (maybe cropping the first part using the substring extractions not to use the current drive but the target of the ingest intstead).

lets say you have an image in c:/root/level1/level2/image.jpg
{folder} gives you level2
{folderpath} should give c:/root/level1/level2/
{path} should result the full path c:/root/level1/level2/image.jpg

If you substract the drive letterthen my guess is {folderpath:-3} returns root/level1/level2/ which is the exact replica in the target folder of the ingest.

Kirk, correct me if I'm wrong!
Working on Mac, OSX, iOS and with some Canons.
Allways shooting RAW.

http://www.volgyiattila.hu

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25054
    • View Profile
    • Camera Bits, Inc.
Re: How to copy several folders and keep the directory structures?
« Reply #3 on: August 23, 2008, 06:53:44 AM »
If you can point to images in the folders you want to be copied than use the {folder}, {folderpath}, and {path} variables (maybe cropping the first part using the substring extractions not to use the current drive but the target of the ingest intstead).

lets say you have an image in c:/root/level1/level2/image.jpg
{folder} gives you level2
{folderpath} should give c:/root/level1/level2/
{path} should result the full path c:/root/level1/level2/image.jpg

If you substract the drive letterthen my guess is {folderpath:-3} returns root/level1/level2/ which is the exact replica in the target folder of the ingest.

Kirk, correct me if I'm wrong!

You would want to use {folderpath:3} instead.  {folderpath:-3} would return 'l2/' (the last three characters of the path).

-Kirk

Offline vAfotoriporter

  • Uber Member
  • ******
  • Posts: 1046
    • View Profile
    • Attila Volgyi photojournalist
Re: How to copy several folders and keep the directory structures?
« Reply #4 on: August 28, 2008, 08:15:13 AM »
If you can point to images in the folders you want to be copied than use the {folder}, {folderpath}, and {path} variables (maybe cropping the first part using the substring extractions not to use the current drive but the target of the ingest intstead).

lets say you have an image in c:/root/level1/level2/image.jpg
{folder} gives you level2
{folderpath} should give c:/root/level1/level2/
{path} should result the full path c:/root/level1/level2/image.jpg

If you substract the drive letterthen my guess is {folderpath:-3} returns root/level1/level2/ which is the exact replica in the target folder of the ingest.

Kirk, correct me if I'm wrong!

You would want to use {folderpath:3} instead.  {folderpath:-3} would return 'l2/' (the last three characters of the path).

-Kirk


So the impossible IS possible with PM again?
,-)))
Working on Mac, OSX, iOS and with some Canons.
Allways shooting RAW.

http://www.volgyiattila.hu