|
||||
File indexing completed on 2025-01-18 09:13:24
0001 //========================================================================== 0002 // AIDA Detector description implementation 0003 //-------------------------------------------------------------------------- 0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN) 0005 // All rights reserved. 0006 // 0007 // For the licensing terms see $DD4hepINSTALL/LICENSE. 0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS. 0009 // 0010 // Author : A. Sailer 0011 // 0012 //========================================================================== 0013 0014 //Header to check if the current compiler and stdlibrary implementation supports filesystem 0015 0016 #include <filesystem> 0017 0018 #include <iostream> 0019 namespace fs = std::filesystem; 0020 0021 int main () 0022 { 0023 fs::space_info devi = fs::space("/dev/null"); 0024 fs::space_info tmpi = fs::space("/tmp"); 0025 std::cout << ". Capacity Free Available\n" 0026 << "/dev: " << devi.capacity << " " 0027 << devi.free << " " << devi.available << '\n' 0028 << "/tmp: " << tmpi.capacity << " " 0029 << tmpi.free << " " << tmpi.available << '\n'; 0030 return 0; 0031 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |