Comments (3)
from cbfs.
But if I delete filePath, why I should expect that directoryPath should not exists?
I can delete a file and directory stay where is it!!!
it( "can verify a directory exists", function() {
var disk = getDisk();
var filePath = "/one/two/test_file.txt";
var directoryPath = "/one/two/";
disk.delete( filePath );
expect( disk.exists( directoryPath ) )
.toBeFalse( "#directoryPath# should not exist" );
disk.create( filePath, "my contents" );
expect( disk.exists( directoryPath ) )
.toBeTrue( "#directoryPath# should exist" );
} );
from cbfs.
Hmmm...you make a good point. I'm not sure why I wrote it that way. 😅
from cbfs.
Related Issues (20)
- How do I configure an S3 drive? HOT 2
- S3 Implementation of uri method is incorrect HOT 1
- S3 Provider does not have the same uri/url methods as LocalProvider HOT 1
- LocalProvider cannot create a file if contents are binary
- Add upload method to providers
- Add support for public hostname
- Introduce a File object and proxy method calls to the disk to provide a more fluent API HOT 1
- Add File/Directory/Disk Lifecycle Events
- Add download method to deliver files directly to browser
- Add createFromFile method
- Inconsistent 'type' field returned on S3 provider when calling .info()
- CBFS is returning JSON files as binary
- Pass file object where it makes sense for announced interceptions
- Add disk methods for copying and moving files between two disks. HOT 2
- The createFromFile() method in the File Object should return the File object, not the Disk Object
- File creation methods in the providers should return File Objects for consistency and chainability.
- url() and download() methods are missing from the File object HOT 1
- Calling disk.files() or disk.files( "" ) throws and exception on the S3 provider. HOT 1
- Allow providers to have an additional visibility of "inherit"
- When the path in properties.path, in the configuration, has "/" slashes that it causes issues in Windows systems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cbfs.