static::
assertFalse($prefix->
directoryExists('foo.txt'
));
static::
assertTrue($fs->
has('foo/foo.txt'
));
static::
assertFalse($fs->
directoryExists('foo/foo.txt'
));
static::
assertSame('bla',
$prefix->
read('foo.txt'
));
static::
assertSame('bla',
stream_get_contents($prefix->
readStream('foo.txt'
)));
static::
assertSame('text/plain',
$prefix->
mimeType('foo.txt'
));
static::
assertSame(3,
$prefix->
fileSize('foo.txt'
));
static::
assertSame(Visibility::
PUBLIC,
$prefix->
visibility('foo.txt'
));
$prefix->
setVisibility('foo.txt', Visibility::
PRIVATE);
static::
assertSame(Visibility::
PRIVATE,
$prefix->
visibility('foo.txt'
));
static::
assertEqualsWithDelta($prefix->
lastModified('foo.txt'
),
time(), 2
);
static::
assertSame('http://example.com/foo/foo.txt',
$prefix->
publicUrl('foo.txt'
));
static::
assertSame('128ecf542a35ac5270a87dc740918404',
$prefix->
checksum('foo.txt'
));
static::
assertSame('http://example.com/temporary-url',
$prefix->
temporaryUrl('foo.txt',
new \
DateTime('+1 hour'
)));
$prefix->
copy('foo.txt', 'bla.txt'
);
static::
assertTrue($prefix->
has('bla.txt'
));
$prefix->
createDirectory('dir'
);
static::
assertTrue($prefix->
directoryExists('dir'
));
static::
assertFalse($prefix->
directoryExists('dir2'
));