mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
add constant for testing fs
This commit is contained in:
parent
5eb1541762
commit
7c4139377a
@ -2,19 +2,14 @@
|
||||
Check for fs event
|
||||
--FILE--
|
||||
<?php
|
||||
/* WIP
|
||||
define("DIRECTORY_PATH", dirname(__FILE__) . "/fixtures/example_directory");
|
||||
/*
|
||||
$ev = uv_fs_event_init(uv_default_loop(),dirname(DIRECTORY_PATH), function($rsc, $name, $event, $stat) {
|
||||
echo "stat: " . $stat . PHP_EOL;
|
||||
var_dump($rsc);
|
||||
|
||||
uv_close($rsc, function(){
|
||||
});
|
||||
sleep(1);
|
||||
echo "finished" . PHP_EOL;
|
||||
uv_close($rsc);
|
||||
},0);
|
||||
|
||||
uv_fs_mkdir(uv_default_loop(), DIRECTORY_PATH, 0755, function($result){
|
||||
var_dump($result);
|
||||
echo "finished" . PHP_EOL;
|
||||
@rmdir(DIRECTORY_PATH);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user