FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
livecode/engine/exec-tests/files/EvalShortFilePath.test at develop · livecodeali/livecode · GitHub
livecodeali
/
livecode
Public
forked from
livecode/livecode
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
livecode
/
engine
/
exec-tests
/
files
/
EvalShortFilePath.test
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (22 loc) · 701 Bytes
Breadcrumbs
livecode
/
engine
/
exec-tests
/
files
/
EvalShortFilePath.test
Copy path
File metadata and controls
28 lines (22 loc) · 701 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
setup
if the platform is "win32" then
local tShortFolder, tLongFolder
put the shortfilepath of the defaultFolder into tShortFolder
put the longfilepath of the defaultFolder into tLongFolder
// check path components are in 8.3 format
set the itemdelimiter to "/"
repeat for each item tPart in tShortFolder
local tLength, tOffset
put the number of chars in tPart into tLength
put offset(".", tPart) into tOffset
if tOffset is 0 then
test tLength <= 8
else
test (tOffset <= 9) and (tLength - tOffset <= 3)
end if
end repeat
test (the longfilepath of tShortFolder) is tLongFolder
else
test (the shortfilepath of the defaultFolder) is (the defaultFolder)
end if
teardown
Back
|
FazBrowse Home
|
New Git URL