SORU
24 Mart 2010, ÇARŞAMBA


dosya boş kontrol etmek için python ya da değil

Bir metin dosyası var. Nasıl dosya boş veya boş olup olmadığını kontrol edebilir miyim?

CEVAP
24 Mart 2010, ÇARŞAMBA


import os    
os.path.getsize(fullpathhere) > 0

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Kontor.TV

    Kontor.TV

    14 Mart 2006
  • Schmittastic Jr.

    Schmittastic

    19 Mart 2013
  • YouplusmeVEVO

    YouplusmeVEV

    4 EYLÜL 2014