from local_lib import path


def main():
    d = path.Path('./tmp')
    # f = d.joinpath('file')
    f = path.Path('./tmp/file')

    if d.isfile():
        d.remove()
    if d.isdir():
        d.rmtree()

    d.mkdir()
    f.write_text('hello world!')
    print(f.read_text())


if __name__ == '__main__':
    main()

9642d341cf3a64631e838e735fda3a1f311a5bdc
<mask token>

<mask token>


def main():
    d = path.Path('./tmp')
    f = path.Path('./tmp/file')
    if d.isfile():
        d.remove()
    if d.isdir():
        d.rmtree()
    d.mkdir()
    f.write_text('hello world!')
    print(f.read_text())


<mask token>

<mask token>


def main():
    d = path.Path('./tmp')
    f = path.Path('./tmp/file')
    if d.isfile():
        d.remove()
    if d.isdir():
        d.rmtree()
    d.mkdir()
    f.write_text('hello world!')
    print(f.read_text())


if __name__ == '__main__':
    main()

from local_lib import path


def main():
    d = path.Path('./tmp')
    f = path.Path('./tmp/file')
    if d.isfile():
        d.remove()
    if d.isdir():
        d.rmtree()
    d.mkdir()
    f.write_text('hello world!')
    print(f.read_text())


if __name__ == '__main__':
    main()

from local_lib import path


def main():
    d = path.Path('./tmp')
    # f = d.joinpath('file')
    f = path.Path('./tmp/file')

    if d.isfile():
        d.remove()
    if d.isdir():
        d.rmtree()

    d.mkdir()
    f.write_text('hello world!')
    print(f.read_text())


if __name__ == '__main__':
    main()
