Import script and file alone in a directory

  • francoisal

    francoisal - 2009-09-07

    Hi all,
    I look for a way to have the following import script, which moves one level up each file that is alone in its directory. For that purpose, during import script, I need to detect if a file is alone in its directory but how can I do ?

    Here as an example:
    - Filesystem Hierarchy:
      Dir-A / File-A1
      Dir-B / FIle-B1
      Dir-B / File-B2

    - Virtual hierarchy
      Dir-B / FIle-B1
      Dir-B / File-B2


  • Jin

    Jin - 2009-12-04

    Sorry, there is no way to do that. The import scripting environment does not provide any means for querying other files, you only get one file that is currently being imported and you can put it somewhere in the virtual hierarchy, that's it.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks