search for: getfileattributes

Displaying 8 results from an estimated 8 matches for "getfileattributes".

Did you mean: setfileattributes
2003 Apr 10
0
Bug in Samba v2.2.8a with Windows API GetFileAttributes ?
Before my company was bought out by another company, we were using Samba v1.9.3 and I'm pretty certain that the GetFileAttributes was working properly but I can't be absolutely sure. Since the move, we're using v2.2.5 and just recently upgraded to v2.2.8a on Solaris 2.7. I'm doing my testing on an XP machine. I'm seeing that GetFileAttributes is always returning 0 instead of a hex value for any valid file pa...
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
...set_compressed(VALUE self, VALUE rbBool){ DWORD dwAttr; VALUE rbPath; HANDLE h; if((rbBool != Qtrue) && (rbBool != Qfalse)){ rb_raise(rb_eTypeError,"Argument must be true or false"); } rbPath = rb_funcall(self,rb_intern("path"),0,0); dwAttr = GetFileAttributes(StringValuePtr(rbPath)); h = CreateFile( (LPCTSTR)StringValuePtr(rbPath), FILE_ALL_ACCESS, FILE_SHARE_READ, NULL, OPEN_EXISTING, dwAttr, NULL ); if(h == INVALID_HANDLE_VALUE){ printf("Error opening file: %s\n",ErrorDescription(Get...
2007 Nov 16
0
AxCrypt - working, just
...ay to pass the filename to the Decrypt program / add it to an 'open with' context item b. Encrypt problem: Can't work with a file outside the programme directory. It gives an error: An error occurred when security wrapping TEST. Error in system call to CReadOnlyMgr::GetAttributes() [GetFileAttributes(Z:\home\myname\/home/myname/.wine/drive_c/Program Files/AxCrypt/TEST)], Path not found. Note the Z:\home\myname\ added in front of the searchpath. Does anyone have any ideas, it would be nice to run it from the menu, with the correct context and right mouse click. If not, any ideas on producing...
2006 Jan 23
1
Odd Samba behavior using Windows XP client API RemoveDirectory function
...against an empty folder residing on a Samba share, the function returns with a success return code but does not delete the folder! This is a known problem and is documented in the Cygwin rmdir command as occurring when the folder is flagged as read-only, which is the Samba default. When I issue a GetFileAttributes call the result does not show the folder as being read-only, but looking at its properties under explorer shows that it is!!! There seems to be no way to programmatically delete such a folder, yet when I delete it using the explorer it is removed without problem. This led me to try the SHFileOper...
2005 Jan 27
2
[LLVMdev] Building the llvm runtime: 'Can't destroy file: Theprocess cannot access the fi
.../Debug/lib/libc.bca] Error 2 ------------------------- Like before, the temporary file libc.bca-000000 doesn't exist when finished. But libc.bca exists. I've put debugging text into: ------------------------- bool Path::destroyFile() const { if (!isFile()) return false; DWORD attr = GetFileAttributes(path.c_str()); // If it doesn't exist, we're done. if (attr == INVALID_FILE_ATTRIBUTES) return true; // Read-only files cannot be deleted on Windows. Must remove the read-only // attribute first. if (attr & FILE_ATTRIBUTE_READONLY) { if (!SetFileAttributes(path.c_s...
2009 Apr 24
0
Wine release 1.1.20
...Add a crash dialog for --auto mode. Nicolas Le Cam (7): msi/tests: Test MsiRecordGetString on null and empty strings. msi: Fix buffer length value returned by MSI_RecordGetStringW on null and empty strings. wininet/tests: Fix HttpSendRequestW test on IE5. msi: Enfore use of GetFileAttributes return value. msi/tests: Add empty dir test for the DrLocator part of the AppSearch action. msi: Fix ACTION_AppSearchDr on empty path. msi/tests: Fix package test when run on a different drive than C:\. Nikolay Sivov (19): comctl32/listview: Fix selection handling in LVM_SO...
2012 May 18
0
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
...ENTED"); > +} > + > +error_code is_writable_file(const Twine &path, bool &result) { > +#if 0 // verify code below before enabling: > + SmallString<128> path_storage; > + StringRef name = path.toNullTerminatedStringRef(path_storage); > + > + DWORD attr = GetFileAttributes(name.begin()); > + > + if (attr == INVALID_FILE_ATTRIBUTES) > + return windows_error(::GetLastError()); > + > + // Files are writable by default, unless marked READONLY > + result = !(attr & FILE_ATTRIBUTE_READONLY); > + #endif This looks right, the only thing it'...
2012 May 17
3
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
I now have an implementation of FileOutputBuffer (OutputBuffer was already taken). The patch supports the functionality listed below and I've tested that it works for lld. -------------- next part -------------- A non-text attachment was scrubbed... Name: FileOutputBuffer.patch Type: application/octet-stream Size: 25308 bytes Desc: not available URL: