datapartyjs / gpgfs

encrypted file storage solution utilizing gnupg
Apache License 2.0
3 stars 0 forks source link

CODE | Validate path scheme in getBucketIds #22

Open sevenbitbyte opened 4 years ago

sevenbitbyte commented 4 years ago

🤖 Code Proposal

Improve gpgfs.getBucketIds() to be more robust and fully filter for valid bucket directories.

Verify:

  1. Path contains a valid bucket id
  2. Path is a directory

https://github.com/datapartyjs/gpgfs/blob/fe51f8b3a5ea436beeb43be892e14f891f6e405a/src/gpgfs.js#L212-L220

Motivation