diff --git a/README.md b/README.md index 7fe2451..b1e47a0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Rackit is a module for managing large collections of files on Rackspace Cloud Files. Rackit automatically creates containers as needed, and reauthenticates when the API token expires. Rackit also supports the generation of temporary, time-limited file URLs. -Cloud Files has a recommended limit of 50,000 files per container. Rackit knows this, and will automatically create new containers as necessary. +Cloud Files has a recommended limit of 100,000,000 files per container. Rackit knows this, and will automatically create new containers as necessary. With Rackit, you specify a container prefix, such as 'file'. Then, Rackit will create containers ['file0', 'file1', ...] as necessary. Files can be uploded by passing local paths or readable streams. @@ -143,4 +143,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lib/rackit.js b/lib/rackit.js index 4d524a7..0fe1cda 100644 --- a/lib/rackit.js +++ b/lib/rackit.js @@ -278,7 +278,7 @@ Rackit.prototype._getContainer = function (cb) { var container = _.last(aContainers); // Check if the container is full - if (container.count >= 50000) { + if (container.count >= 100000000) { // The container is full, create the next one o1._createContainer(cb); return; diff --git a/test/rackit.test.js b/test/rackit.test.js index 4d188b7..e4b2ad4 100644 --- a/test/rackit.test.js +++ b/test/rackit.test.js @@ -47,7 +47,7 @@ var containers = { }, { name : 'full0', - count : 50000, + count : 100000000, bytes : 12000 }, { @@ -382,7 +382,7 @@ describe('Rackit', function () { // Assert that the container exists, and is not to capacity var _container = _.find(rackit.aContainers, { name : container }); - _container.count.should.be.below(50000); + _container.count.should.be.below(100000000); return _container.count; }