From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11039 invoked by alias); 29 Jul 2019 01:12:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11032 invoked by uid 89); 29 Jul 2019 01:12:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=recovery, Recovery, H*MI:1c69fb81, HX-Languages-Length:576 X-HELO: mail-ot1-f54.google.com Received: from mail-ot1-f54.google.com (HELO mail-ot1-f54.google.com) (209.85.210.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Jul 2019 01:12:56 +0000 Received: by mail-ot1-f54.google.com with SMTP id j11so3603018otp.10 for ; Sun, 28 Jul 2019 18:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:subject:user-agent; bh=10Vh/dN93rSQBNjSHFfSeRSD26DXFT2aAKnlakIB/GI=; b=SP8UQv88e5Fep7UqlQD6jXo1AHZ9GOOjLcs/V1KB8+7jM7yq1RRc2jIc7D+TeVXNWD rEMKsziaCcf5kGGptQwmY7TyLk1dWpcQBlBulHLtP7v3z2a2RRhagV54u0IkYRHdK/Uc wvrmIjK7QL9pIoqMUQ3tBMBjG8rO4PE2g5yrIDbdssU2m2bE6gZsWUSjbCdnvCkU/kGr k9zVFeF31+DhraDmPPM1QpoCkfNShLUITCtqOH5Yu2HBIGYZoSdolwEleBZCwCFYsHhS y1+D8Ech1mq4nZyRWQKFtvMF3MyYO15sjf9PzTJoj2P7bIFC9JUWbCVREOnpyJdi5sUe aiQg== Return-Path: Received: from Sm3 ([2605:6000:9fc0:56:6045:8f05:def0:5b7]) by smtp.gmail.com with ESMTPSA id n83sm19439512oia.49.2019.07.28.18.12.53 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 28 Jul 2019 18:12:54 -0700 (PDT) Message-ID: <5d3e4816.1c69fb81.73fb3.5121@mx.google.com> Date: Mon, 29 Jul 2019 01:12:00 -0000 From: Steven Penny To: cygwin@cygwin.com Subject: Python and file attributes Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Suede Mail/2.8.0 (github.com/cup/suede) X-SW-Source: 2019-07/txt/msg00245.txt.bz2 The Windows version of Python can access file attributes: >>> import os >>> os.stat('C:\Recovery').st_file_attributes 8214 https://docs.python.org/library/os#os.stat_result.st_file_attributes However the Cygwin version cannot: >>> import os >>> os.stat('C:\Recovery').st_file_attributes Traceback (most recent call last): File "", line 1, in AttributeError: 'os.stat_result' object has no attribute 'st_file_attributes' This is unexpected as other Cygwin tools can access this information: $ lsattr -hs------n-- ./Recovery -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple