octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55161] Cannot open multiple files from Google


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #55161] Cannot open multiple files from Google Drive File Stream in the editor
Date: Tue, 15 Oct 2019 02:39:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36

Follow-up Comment #20, bug #55161 (project octave):

Alright, I attached the file with the working check as mentioned in comment
#18


retval = (hfi1.dwVolumeSerialNumber == hfi2.dwVolumeSerialNumber
          && hfi1.nFileIndexHigh == hfi2.nFileIndexHigh
          && hfi1.nFileIndexLow == hfi2.nFileIndexLow
          && hfi1.nFileSizeHigh == hfi2.nFileSizeHigh
          && hfi1.nFileSizeLow == hfi2.nFileSizeLow
          && hfi1.ftLastWriteTime.dwLowDateTime ==
hfi2.ftLastWriteTime.dwLowDateTime
          && hfi1.ftLastWriteTime.dwHighDateTime ==
hfi2.ftLastWriteTime.dwHighDateTime);


The reason for this Windows API code to be used might be, that it is sponsored
2009 by StackOverflow to address those many absurd ways of specifying case
insensitive, abbreviated, ..., paths in MS Windows:

https://stackoverflow.com/a/562830

Torsten, your suggestion is to rely on the canonical path only to check for
equality?  I was fine with it, the alternative by "GetFileInformationByHandle"
is error prone too, as shown by this bug report.

(file #47672)
    _______________________________________________________

Additional Item Attachment:

File name: main_works.cc                  Size:2 KB
    <https://savannah.gnu.org/file/main_works.cc?file_id=47672>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55161>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]