-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: open last saving directory for consecutive 'save to file' function #96
Comments
We find the problem is due to Mac and Linux system. They use difference slash with Windows. We need to find a method to solve the it. |
I find the source of these problem is InputFile.filename. We got it by function getPath(). It saves path and name of input file as Stirng (C:\Users\ReaderStudy\Documents\qigong\imrmc_inputfile\test_new1.imrmc). We used "filename.lastIndexOf("")" function to separate it to path and name. But in Linux and Mac InputFile.filename will be (C:/Users/ReaderStudy/Documents/qigong/imrmc_inputfile/test_new1.imrmc.) Then we can't separate path and name by "filename.lastIndexOf("")" function. I think there are 2 methods to solve this problem
|
I subscribe to the following: |
…Windows, MAC, Linux) Separate variable filename into 3 variables filePathAndName(path + name, which is same as old variable filename), filePath (folder path of input file) and fileName (file name only). Set this 3 variables when user load input file. Then we don't need lastIndexOf to separate them.
Could we close it? |
Sure, thank you. Silvina On Tue, Oct 4, 2016 at 11:05 AM Qi Gong notifications@github.com wrote:
|
Works for me. Nice job. I'm closing this issue. |
Hi! Just a minor issue. The second time you use 'Save to file', while analyzing the same imrmc file, the 'save' directory changes and instead of exporting to the last one used or where the current analyzed imrmc file is, it returns to the root.
The text was updated successfully, but these errors were encountered: