Github Hosted Runner on windows doesn't support moving files or listing directories in C:?

Dear Github Actions support,

I’m running a github hosted windows runner and my build process implied downloading and unpacking some zips within C:. I can create a file there, but for some reason one of my program which works fine on any windows 10 pro fails by moving files on the runner with an errror that moving file is not possible because the file doesn’t exists.

To debug that I tried to list the folders contents. I could list a tree of files with Tree /F C:\.nxxm which shows that somehow it could create the directory tree and the file my program downloads.

But then to further debug the problem I couldn’t even use the dir command or Get-ChildItem in powershell to check if the download operation completed.

Here follows the output, you can see that on time 2020-06-09T16:47:56.9774353Z the Tree output works but dir or Get-ChildItem returns nothing or alot of empty lines.

Is there an obvious reason to that that I miss ?

2020-06-09T16:47:32.6950241Z ##[group]Run Get-PSDrive C | Select-Object Used,Free
2020-06-09T16:47:32.6950490Z e[36;1mGet-PSDrive C | Select-Object Used,Freee[0m
2020-06-09T16:47:32.6950605Z e[36;1mGet-PSDrivee[0m
2020-06-09T16:47:32.6950710Z e[36;1mdir C:\e[0m
2020-06-09T16:47:32.6950812Z e[36;1mdir D:\e[0m
2020-06-09T16:47:32.6950920Z e[36;1mWrite-Output $env:HOMEDRIVEe[0m
2020-06-09T16:47:32.6951034Z e[36;1mWrite-Output $env:HOMEPATHe[0m
2020-06-09T16:47:32.6951127Z e[36;1mmkdir C:\.nxxm\e[0m
2020-06-09T16:47:32.6951251Z e[36;1mCopy-Item -Path .ci.auth -Destination C:\.nxxm\.authe[0m
2020-06-09T16:47:32.6951369Z e[36;1mdir C:\.nxxm\e[0m
2020-06-09T16:47:32.6951494Z e[36;1m$env:PreferredToolArchitecture = "x64"e[0m
2020-06-09T16:47:32.6951628Z e[36;1mancestral\win10\nxxm.exe . --dont-upgrade --verbose -t vs-15-2017-win64-cxx17 --test all -ne[0m
2020-06-09T16:47:32.6951757Z e[36;1mTree /F C:\.nxxme[0m
2020-06-09T16:47:32.6951869Z e[36;1mGet-PSDrive C | Select-Object Used,Freee[0m
2020-06-09T16:47:32.6952034Z e[36;1mGet-PSDrivee[0m
2020-06-09T16:47:32.9418599Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2020-06-09T16:47:32.9418742Z ##[endgroup]
2020-06-09T16:47:53.8346389Z 
2020-06-09T16:47:54.9079995Z         Used         Free
2020-06-09T16:47:54.9080747Z         ----         ----
2020-06-09T16:47:54.9081265Z 173183500288 101168017408
2020-06-09T16:47:54.9082850Z                          
2020-06-09T16:47:54.9087594Z                          
2020-06-09T16:47:54.9092263Z 173183500288 101168017408
2020-06-09T16:47:54.9094568Z                          
2020-06-09T16:47:54.9097530Z   1971032064  13060235264
2020-06-09T16:47:54.9099923Z                          
2020-06-09T16:47:54.9102866Z                          
2020-06-09T16:47:54.9103237Z                          
2020-06-09T16:47:54.9105281Z                          
2020-06-09T16:47:54.9108384Z 173183500288 101168017408
2020-06-09T16:47:54.9110383Z                          
2020-06-09T16:47:54.9112165Z                          
2020-06-09T16:47:54.9575894Z                          
2020-06-09T16:47:54.9579851Z                          
2020-06-09T16:47:54.9585941Z                          
2020-06-09T16:47:54.9586357Z                          
2020-06-09T16:47:54.9591440Z                          
2020-06-09T16:47:54.9591967Z                          
2020-06-09T16:47:54.9592499Z                          
2020-06-09T16:47:54.9593002Z                          
2020-06-09T16:47:54.9593317Z                          
2020-06-09T16:47:54.9599940Z                          
2020-06-09T16:47:54.9600547Z                          
2020-06-09T16:47:54.9600886Z                          
2020-06-09T16:47:54.9601459Z                          
2020-06-09T16:47:54.9601837Z                          
2020-06-09T16:47:54.9602110Z                          
2020-06-09T16:47:54.9602599Z                          
2020-06-09T16:47:54.9602965Z                          
2020-06-09T16:47:54.9603276Z                          
2020-06-09T16:47:54.9603789Z                          
2020-06-09T16:47:54.9604869Z                          
2020-06-09T16:47:54.9613932Z                          
2020-06-09T16:47:54.9614763Z                          
2020-06-09T16:47:54.9615116Z                          
2020-06-09T16:47:54.9615580Z                          
2020-06-09T16:47:54.9615928Z                          
2020-06-09T16:47:54.9616230Z                          
2020-06-09T16:47:54.9616526Z                          
2020-06-09T16:47:54.9616822Z                          
2020-06-09T16:47:54.9617115Z                          
2020-06-09T16:47:54.9617410Z                          
2020-06-09T16:47:54.9617725Z                          
2020-06-09T16:47:54.9618020Z                          
2020-06-09T16:47:54.9618312Z                          
2020-06-09T16:47:54.9618582Z                          
2020-06-09T16:47:54.9618947Z                          
2020-06-09T16:47:54.9645393Z                          
2020-06-09T16:47:54.9648834Z                          
2020-06-09T16:47:54.9649126Z                          
2020-06-09T16:47:54.9656193Z                          
2020-06-09T16:47:54.9658346Z                          
2020-06-09T16:47:54.9659915Z                          
2020-06-09T16:47:54.9661469Z                          
2020-06-09T16:47:54.9663295Z                          
2020-06-09T16:47:54.9809360Z C:
2020-06-09T16:47:54.9812546Z \Users\runneradmin
2020-06-09T16:47:55.0622008Z                          
2020-06-09T16:47:55.0623456Z                          
2020-06-09T16:47:55.1109318Z shipping cmake.
2020-06-09T16:47:55.1112700Z Checking if "C:\.nxxm\0000000\downloads\cmake.zip" is up-to-date.
2020-06-09T16:47:55.1113471Z Downloading https://nxxm.github.io/distro/cmake/cmake-3.12.1-win64-x64.zip as "C:\.nxxm\0000000\downloads\cmake.zip"
2020-06-09T16:47:56.8938505Z ● [err] Dynamic exception type: class boost::filesystem::filesystem_error
2020-06-09T16:47:56.8939076Z std::exception::what: boost::filesystem::rename: The system cannot find the path specified: "C:\.nxxm\0000000\downloads\cmake\cmake-3.12.1-win64-x64", "C:\.nxxm\0000000\cmake"
2020-06-09T16:47:56.8939362Z ● [err] Dynamic exception type: class std::runtime_error
2020-06-09T16:47:56.8939532Z std::exception::what: Impossible to ship cmake
2020-06-09T16:47:56.9773271Z Folder PATH listing for volume Windows
2020-06-09T16:47:56.9773875Z Volume serial number is AEDA-A7B9
2020-06-09T16:47:56.9774353Z C:\.NXXM
2020-06-09T16:47:56.9776885Z �   .auth
2020-06-09T16:47:56.9777267Z �   
2020-06-09T16:47:56.9777679Z ����0000000
2020-06-09T16:47:56.9778146Z     ����downloads
2020-06-09T16:47:56.9780108Z             cmake.zip
2020-06-09T16:47:56.9780405Z             
2020-06-09T16:47:56.9880807Z 173210075136 101141442560
2020-06-09T16:47:57.0519241Z                          
2020-06-09T16:47:57.0520022Z                          
2020-06-09T16:47:57.0520268Z 173210075136 101141442560
2020-06-09T16:47:57.0520506Z                          
2020-06-09T16:47:57.0520948Z   1971032064  13060235264
2020-06-09T16:47:57.0521207Z                          
2020-06-09T16:47:57.0521418Z                          
2020-06-09T16:47:57.0521636Z                          
2020-06-09T16:47:57.0522594Z                          
2020-06-09T16:47:57.0525555Z 173210075136 101141442560
2020-06-09T16:47:57.0527378Z                          
2020-06-09T16:47:57.0529050Z                          
2020-06-09T16:47:57.0939656Z 
2020-06-09T16:47:57.1344127Z Post job cleanup.

@daminetreg,

Have you tried the ls command?
In PowerShell, the ls command and the dir command are the aliases for the Get-Location cmdlet.
I tested the ls command and the Get-Location cmdlet on my side, they can work fine as expected.
I also tested to move files by using the Move-Item cmdlet, it also can work fine as expected.

jobs:
  test:
    name: Test
    runs-on: windows-latest
    steps:
      - name: test
        run: |
          echo "=============================== create files ==============================="
          mkdir -p C:/.nxxm/tDir1/tDir1.1
          echo "This is file tDir1-file1.txt" > C:/.nxxm/tDir1/tDir1-file1.txt
          echo "This is file tDir1.1-file1.txt" > C:/.nxxm/tDir1/tDir1.1/tDir1.1-file1.txt
          echo "=============================== list files 01 ==============================="
          echo "Using [Tree /F C:/.nxxm]"
          Tree /F C:/.nxxm
          echo "=============================== list files 02 ==============================="
          echo "Using [ls -R C:/.nxxm]"
          ls -R C:/.nxxm
          echo "=============================== list files 03 ==============================="
          echo "Using [Get-ChildItem -Path C:/.nxxm -Recurse]"
          Get-ChildItem -Path C:/.nxxm -Recurse
          echo "================================= move files ================================"
          Move-Item -Path C:/.nxxm -Destination ./
          ls -R

You can reference my above example to improve the commands in your workflow to see if the problem can be solved.
If the problem still exists, please share your repository with us so that we can check more detailed configurations in your workflow to analyze the root cause.