INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Import particular folder via API  (Read 1085 times)

gvanbrunt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1232
  • MC Nerd
Import particular folder via API
« on: August 17, 2011, 07:03:38 pm »

Is there any way to import a particular folder (only) via the API, command or Web Service?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Import particular folder via API
« Reply #1 on: August 17, 2011, 07:52:06 pm »

The MC command line option /Import (and its variants) are described to only import a single file.  If this is correct, and I have not verified it, a script could be written to import an entire folder easily enough.

http://wiki.jriver.com/index.php/The_Command_Line
Logged
The opinions I express represent my own folly.

gvanbrunt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1232
  • MC Nerd
Re: Import particular folder via API
« Reply #2 on: August 17, 2011, 09:28:39 pm »

Thanks! Not ideal but usable. It would be nice if it offered a whay to duplicate the "import a single folder" feature.

I wanted to run an import while in Theater view. I'll just write a script to import all the files. Might take some thinking though as it may import junk as well such as txt files and whatnot.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Import particular folder via API
« Reply #3 on: August 17, 2011, 10:00:56 pm »

OK, perhaps not necessary after all.

   mc16.exe /import <foldername>

will import a folder's contents.

I'll update the wiki.

[edit: wiki updated; should be clearer now that /import, etc. can import one or more files/folders]
Logged
The opinions I express represent my own folly.

gvanbrunt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1232
  • MC Nerd
Re: Import particular folder via API
« Reply #4 on: August 18, 2011, 05:14:20 pm »

Excellent. Thanks!
Logged
Pages: [1]   Go Up