Skip to content

Default use of directory recursion, problems with backup/overwrite #29

@Mabu2

Description

@Mabu2

Using the -d parameter with the cli.php command line interface, causes recursive conversion of nested subdirectories.

(this doesn't appear to be mentioned in any documentation and can be quite a shock to anybody who wanted to test the conversion within a small scope - I ran this in what I thought was a sandbox and it crawled symlinks and damaged production code)

There should be an option to enable/disable directory recursion, and allow use of a single directory. (NOTE that you cannot apparently specify a directory via the -p command, that seems to take filespecs only)

I recommend the addition of the following extra commands:

  • enable/disable directory recursion (it should default to no recursion and use something like -R for recursion)

  • skip conversion/backup of any file for which there's already a .org file present - since there is no warning, you can hose the original copies of a converted file with a subsequent run of the conversion script. There should be an option to enable a check to make sure this doesn't happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions