FileSystemUtils.freeSpaceKb fails to return correct result for a NTFS mount point or junction.
Suppose I have a NTFS partition mounted at C:\Data\partition1.
Now assume that the free space on Partition mounted as C: is 1GB and that mounted on "C:\Data\partition1" is 2GB. A call to FileSystemUtils.freeSpaceKb("C:\Data\partition1") will return the free space on C: and not on "C:\Data\partition1".
This is because while running the "dir /-c" with the given path, the code just retains first 2 chars i.e. for any path under "C:\blah\de\blah", "dir /-c" will be called with "C:" which will return incorrect result.
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Assignee||Niall Pemberton [ niallp ]|
|Fix Version/s||2.0 [ 12312961 ]|
|Resolution||Fixed [ 1 ]|
|Workflow||jira [ 12471372 ]||Default workflow, editable Closed status [ 12601887 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|