/[svn]/linuxsampler/trunk/src/common/File.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/File.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3081 by persson, Sun Feb 12 11:32:43 2012 UTC revision 3082 by schoenebeck, Mon Jan 9 18:39:35 2017 UTC
# Line 27  Line 27 
27  #include <dirent.h>  #include <dirent.h>
28    
29  #include "Exception.h"  #include "Exception.h"
30    #include "Path.h"
31  #include "global_private.h"  #include "global_private.h"
32    
33  #if WIN32  #if WIN32
# Line 47  namespace LinuxSampler { Line 48  namespace LinuxSampler {
48      std::vector<File::DirectoryWalker*> File::DirectoryWalkers;      std::vector<File::DirectoryWalker*> File::DirectoryWalkers;
49      std::string File::DWErrorMsg;      std::string File::DWErrorMsg;
50    
51        File::File(const Path& path) {
52            bExist = !stat(path.toNativeFSPath().c_str(), &Status);
53            if (!bExist) ErrorMsg = strerror(errno);
54        }
55    
56      File::File(std::string Path) {      File::File(std::string Path) {
57              bExist = !stat(Path.c_str(), &Status);              bExist = !stat(Path.c_str(), &Status);
58              if(!bExist) ErrorMsg = strerror(errno);              if(!bExist) ErrorMsg = strerror(errno);

Legend:
Removed from v.3081  
changed lines
  Added in v.3082

  ViewVC Help
Powered by ViewVC