LibraryOfCongress / bagit-python

Work with BagIt packages from Python.
http://libraryofcongress.github.io/bagit-python
216 stars 85 forks source link

self.path shouldn't be None #167

Open fkloft opened 1 year ago

fkloft commented 1 year ago

As mentioned in issue #166, self.path shouldn't be None. This removes the default value of None and removes the check for None. os.path.abspath will remove any trailing slash (except for the directory root /). This should be backwards compatible, since previously os.path.abspath(None) would've raised an exception.