From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id BFF6B7ED34 for ; Tue, 3 Jul 2012 10:45:10 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of camaradetux@gmail.com) identity=pra; client-ip=209.85.214.182; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="camaradetux@gmail.com"; x-sender="camaradetux@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of camaradetux@gmail.com designates 209.85.214.182 as permitted sender) identity=mailfrom; client-ip=209.85.214.182; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="camaradetux@gmail.com"; x-sender="camaradetux@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ob0-f182.google.com) identity=helo; client-ip=209.85.214.182; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="camaradetux@gmail.com"; x-sender="postmaster@mail-ob0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai8EAAyw8k/RVda2kGdsb2JhbABFtTwDgSEIIgEBAQEJCQ0HFAQjghkBAQQSAiwBGx0BAwwGBQs7IgERAQUBHAY1h1oBAwucPwkDjCOCcYVOChknDVeIcQEFDIxUhHIDjWaHT44mPoQA X-IronPort-AV: E=Sophos;i="4.77,514,1336341600"; d="scan'208";a="149459656" Received: from mail-ob0-f182.google.com ([209.85.214.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 03 Jul 2012 10:45:09 +0200 Received: by obbun3 with SMTP id un3so17127540obb.27 for ; Tue, 03 Jul 2012 01:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QHzEoAc97kDiwhWfx5aW5E3b3WRnC/ywwC9C6jYiLO0=; b=Ffl3vfHRNyin9wzDcWuykeXeZ6Aa2z4kPMMLCxmX/sXtXUC4dw2OxIS1aHz2bsfNHU mGVNGRDTT/McpSJkTUkSTNUjh7/7snGXEPuK90ZhLUlaQxadG+RqZCeHGy+HLVfb3rOv ljYJYRJ1kfAmEfCS20c67eWGvKFbWKYy0eUTQkNpt70hftVTxOHDS+NDGZB07ZQmvs/c sSaozX3YgFEGfXOLxDYsRiqeBCoMq0mLXXi0qaXtd1u+v5cNd8PU0PO8vK4HDmobT+Yx qs29SIwuxIZg8BhCCQK4vlJ2dLlXZpGIEeJmsmTioyPD0hVDk9drO0F0ear4O2vgqyRG Mh4Q== MIME-Version: 1.0 Received: by 10.182.47.66 with SMTP id b2mr489998obn.2.1341305108364; Tue, 03 Jul 2012 01:45:08 -0700 (PDT) Received: by 10.76.8.35 with HTTP; Tue, 3 Jul 2012 01:45:08 -0700 (PDT) In-Reply-To: <512901341304419@web29g.yandex.ru> References: <271211341286221@web29f.yandex.ru> <4FF28EEA.7060009@glondu.net> <481061341303698@web18d.yandex.ru> <512901341304419@web29g.yandex.ru> Date: Tue, 3 Jul 2012 10:45:08 +0200 Message-ID: From: Adrien To: Ivan Cc: Gabriel Scherer , =?ISO-8859-1?Q?St=E9phane_Glondu?= , "\"caml-list@inria.fr\"" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] howto: recursively iterate over filesystem Hi, Fileutils details what is going on a bit more than the stdlib, that's probably why it can seem more "dangerous". You shouldn't be less safe with it. IIRC, the type for a path in fileutils is simply a string. I manipulate windows paths on unix and vice-versa. Of course, trying to access one from the other is going to cause issues. The way I understand it, the issues are similar here. -- Adrien Nader