Skip to content

Instantly share code, notes, and snippets.

@imsodin
imsodin / readOneDriveDir.go
Last active November 25, 2017 21:38 — forked from clee231/readOneDriveDir.go
A quick test to read the OneDrive Folder in the current user's home directory. (Based off of: http://www.golangprograms.com/how-to-read-names-of-all-files-and-folders-in-current-directory.html)
package main
import (
"log"
"os"
"fmt"
"os/user"
)
func readCurrentDir() {
usr, err := user.Current()
if err != nil {
package main
import (
"fmt"
"github.com/syncthing/syncthing/lib/fs"
)
func main() {
base := `F:\`