Moving and Deleting directories

Discussion in 'Rebol' started by Ken, Mar 21, 2010.

  1. Ken

    Ken New Member

    How do you move, delete and rename directories in Rebol 3?
  2. Graham

    Graham Developer Staff Member

    Have you tried

  3. Ken

    Ken New Member

    Yes, rename comes up with an error in Rebol 3: ** Script error: cannot use rename on port! value
    delete works on individual directories but not nested directories and
    I cannot see anyway to move directories, or files come to that
  4. Graham

    Graham Developer Staff Member

    If the facility does not exist in the OS, then Rebol won't implement file/directory operations.

    'rename works for me using alpha 96.
  5. Ken

    Ken New Member

    I am using Alpha 97 and it definitely does not rename directories but comes up with the port error as specified above.
    Also renaming a file in a directory and not specifying the destination directory, creates a copy of the file with the new name in the current directory
    and deletes the file from the original directory! Kind of an unofficial move?!

    Anyway I think the file renaming function in A97 is bugged.

    Thanks for you help Graham.
  6. Graham

    Graham Developer Staff Member

    Hi Ken

    Ii didn't try renaming directories so if there's an issue, you can log it here

    Renaming files is like a move in windows.

Share This Page