Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Unpinned files and pdir

Oct
93
0
Given
Code:
function cs-size=`%@if[%1 LT 1024,%1B,%@if[%1 LT 10235,%@eval[%1/1024=2]K,%@if[%1 LT 102349,%@eval[%1/1024=1]K,^
%@if[%1 LT 1048064,%@eval[%1/1024=0]K,%@if[%1 LT 10480518,%@eval[%1/1024**2=2]M,%@if[%1 LT 104805172,^
%@eval[%1/1024**2=1]M,%@if[%1 LT 1073217536,%@eval[%1/1024**2=0]M,%@if[%1 LT 10732049531,%@eval[%1/1024**3=2]G,^
%@if[%1 LT 107320495309,%@eval[%1/1024**3=1]G,%@if[%1 LT 1098974756864,%@eval[%1/1024**3=0]G,%@if[%1 LT 10989618719622,^
%@eval[%1/1024**4=2]T,%@if[%1 LT 109896187196212,%@eval[%1/1024**4=1]T,%@if[%1 LT 1125350151028736,^
%@eval[%1/1024**4=0]T,%@if[%1 LT 11253369568892027,%@eval[%1/1024**5=2]P,%@if[%1 LT 112533695688920269,^
%@eval[%1/1024**5=1]P,%@eval[%1/1024**5=0]P]]]]]]]]]]]]]]]`
why does the following command cause unpinned OneDrive files to be downloaded?
Code:
pdir /\ /(dy-m-d th:m:sd 5@cs-size[%%@filesize[*]] 5@cs-size[%%@filesize[*,b,a]] fn)
This command does not
Code:
or %a in (*) echo %@cs-size[%@filesize["%a"]]
Neither does this:
Code:
for %a in (*) echo %@cs-size[%@filesize["%a",b,a]]
it just shows 0B for each file.
This also does not download the files, either
Code:
for %a in (*) echo %@agedate[%@fileage["%a"]]

It appears there are at least two things in pdir causing the download:
  1. The milliseconds (d) in the timestamp
  2. calling filesize on the file

though calling filesize directly, or calling fileage directly, do not.

Is this a bug, windows-ism, or pebkac? If the last, how do I do it the not-stupid way?
 
Back
Top