PIFile: applyFileInfo

PIPeer: fixed
pisd work progress ...

git-svn-id: svn://db.shs.com.ru/pip@20 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-03-12 13:28:27 +00:00
parent 3ed292a602
commit fdb48aba64
14 changed files with 346 additions and 148 deletions

View File

@@ -126,13 +126,17 @@ public:
using namespace PIScreenTypes;
int main (int argc, char * argv[]) {
/*PILibrary lib(argv[1]);
piCout << lib.isLoaded();
piCout << lib.resolve(argv[2]);
lib.unload();
piCout << lib.load(argv[1]);
piCout << lib.resolve(argv[2]);
return 0;*/
PIFile::FileInfo fi = PIFile::fileInfo(argv[1]);
piCout << fi;
fi.perm_user = fi.perm_group = fi.perm_other = 7;
fi.id_user = 1000;
fi.time_access.day--;
fi.time_modification.hours++;
fi.flags |= PIFile::FileInfo::Hidden;
piCout << PIFile::applyFileInfo(fi);
fi = PIFile::fileInfo(argv[1]);
piCout << fi;
return 0;
/*if (!(argc == 3 || argc == 4)) {
piCout << "UDPFileTransfer";
piCout << "USE: piptest [src_ip_port] [dst_ip_port] {filename}";