rename(path:newName:eventLoop:)

    Renames the file at path to newName on a private thread pool which is separate from any EventLoop thread.

    NonBlockingFileIO.swift:767
    func rename(path: String, newName: String, eventLoop: EventLoop) -> EventLoopFuture<Void>

    Parameters

    path

    The path of the file to be renamed.

    newName

    New file name.

    eventLoop

    The EventLoop on which the returned EventLoopFuture will fire.

    Returns

    An EventLoopFuture which is fulfilled if the rename was successful or fails on error.

    Other members in extension

    Types

    Type members

    Instance members