byteface / sharpshooter

A shorthand for creating files and folders. (A parser could be written in any language)
MIT License
11 stars 1 forks source link

- cant do for files on same line? #33

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

This issue was automatically created by a github action that converts project Todos to issues.

https://github.com/byteface/sharpshooter/blob/b7afabf36077e1d982f523b71e742597441dedff/tests/test_sharpshooter.py#L149

        # -rw-r--r--@ 1 byteface  staff  2100 21 Sep 07:58 README.md
        # To read info about a file or folder without creation use colon :

        # TODO - cant do for files on same line?
        test = tree("""
:test_sharpshooter.py
""", test=True)
        print(f"{test}")
        assert 'test_sharpshooter.py' in f"{test}"

        test = tree(":venv")
        print(f"{test}")

        # test not creating things by using colon
byteface commented 2 years ago

i think this is because i start was_dir as True. i noted at the time this might be hacky. but i guess that means until the line is returned it thinks its a dir?. so works for dir?.