Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Lwt_unix.file_exists and Large_file version #169

Merged
merged 1 commit into from Jul 6, 2015
Merged

Add Lwt_unix.file_exists and Large_file version #169

merged 1 commit into from Jul 6, 2015

Conversation

hcarty
Copy link
Contributor

@hcarty hcarty commented Jul 5, 2015

I'm not sure if two versions are actually required but it seems like a safer approach since stat comes in two forms.

@@ -35,6 +35,9 @@ let open_and_read_filename () =
return ()

let suite = suite "lwt_io non blocking io" [
test "file does not exist"
(fun () -> Lwt_unix.file_exists test_file >>= fun r -> Lwt.return (not r));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use >|=

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed, thanks.

vbmithr added a commit that referenced this pull request Jul 6, 2015
Add Lwt_unix.file_exists and Large_file version
@vbmithr vbmithr merged commit b4af03f into ocsigen:master Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants