thirteenpylons / ffs

Tools that make working with my file system quick.
MIT License
1 stars 0 forks source link

File is missing extension when instantiated #1

Open thirteenpylons opened 2 years ago

thirteenpylons commented 2 years ago

Filename must be saved with current extension after first use. When using ffs the extension is missing if not explicitly defined upon second instance.

result = ffs.Manage("jan")

  assert result.name() == "jan.txt"

E AssertionError: assert 'jan' == 'jan.txt' E - jan.txt E + jan

Within the same scope the file extension is ignored with first use pushing ".txt" by default if defined:

FIRST PASS

result = ffs.Manage("this") assert result.name() == "this.txt" result = ffs.Manage("that.py")

  assert result.name() == "that.py"

E AssertionError: assert 'that.py.txt' == 'that.py' E - that.py E + that.py.txt E ? ++++

SECOND PASS

    result = ffs.Manage("this")
  assert result.name() == "this.txt"

E AssertionError: assert 'this' == 'this.txt' E - this.txt E + this

thirteenpylons commented 2 years ago

Using Python 3.8.3