Create student cumulative folders on Google Drive using Google FileStream using exports from PowerSchool.
If the Create folders application is not available or non-functional, see the Backup Plan found here
IMPORTANT if you have never run the application see the First Run Instructions below!
This assumes you already have Google FileStream installed and are signed in as well as a prepared student.export file from PowerSchool.
- Download the application from this link
- Locate the file
createFolders.pkg
-- likely in yourDownloads
folder - Double click on the file to run the installer
- You may need an administrator's password to install this
- Locate the createFolders icon in your
Applications
folder and double click on it to run- If you receive error messages or popups preventing you from running the application see the Help section
- Click "Process File" to begin processing a student.export file from PowerSchool
- If this is the first time you have run this program, you will be asked to choose a Google Shared drive and cumulative student folder.
- If you are unsure how to do this, see the Help section
- When prompted slect a student export file to process by clicking "Browse"
- Click "Ok" to begin the processing
- When the process is complete, review the summary
- A record of the completed tasks is made on your desktop in a folder called
createFolders
- Make sure to send the
YYYY-MM-DD_Portfolio_Links_for_PowerSchool.csv
to the PowerSchool Administrator
- A record of the completed tasks is made on your desktop in a folder called
- You may process another file immediately if needed
createFolders depends on a working instance of Google FileStream installed and signed in with an account that can write to the Student Cumulative Folders shared drive. See the Help section for assistance in setting up FileStream.
createFolders reads data from PowerSchool exports to create folders in Google Drive and prepare links for the demographics page. This section details the preparation of a student.export.text file that can be used with createFolders.
createFolders will not create duplicate folders for existing students and will not create folders when a duplicate student number is found. This means that you can run the same batch of students several times without harm. If a folder already exists, it will simply be checked for consistency and further ignored.
Locate any new students in PowerSchool and run a quick export. This query can be very helpful: Grade_Level=X;DistrictEntryDate>=MM/DD/YYYY
When running a Quick Export the following fileds must be included. Any additional fields will be ignored.
LastFirst
Student_Number
ClassOf
createFolders has only four options when run in graphical mode:
- Process File
- Change Shared Drive
- Help
- Exit
Select a student.export file and create student folders as needed. The student.export file must be in a delimited format such as a tsv or csv with the folowing column headers: LastFirst, Student_Number, ClassOf
. These fields can be in any order. Additional fields will be ignored.
Data rows must follow the following data types:
LastFirst
-- stringStudent_Number
-- integerClassOf
-- integer
Data rows that do not conform will be ignored and recorded in ~/Desktop/createFolders
as a csv file.
Once the opporation is completed, a summary of the completed procedures will open. READ all of the summary. There may be some students that could not be processed.
Share the Links TXT file with the PS Administrator so PowerSchool links can be updated.
A report of any Errors and files that must be sent to the PS Administator is stored in a folder on your Desktop called createFolders. READ the entire window. Be sure to review the any ERROR files and correct the errors! YOU MUST run the application again to create forlders for the students with errors. It is possible to simply process the Error file by selecting it. You may also run the same student export again; duplicate folders will not be created.
Choose the shared drive and folder where cumulative folders are stored. This is the location where all cumulative folders are stored. createFolders preforms several checks to ensure you have chosen the appropriate drive. For more help see the help section: Choosing the Shared Drive and Cumulative Student Folder
createFolders looks for a specific file called sentryFile_DO_NOT_REMOVE.txt
in the Student Cumulative Folders (AKA Student Portfolios)
folder. If this file is missing, createFolders will not proceed. See below for more information in remedying this problem.
Choosing an improper Google Shared drive will result in the following errors:
- Local or Non-Google Drive:
"/Users/spamham/Documents" is not a Google Drive. Choose a Google Shared Drive.
- Google Drive, but typo in folder name:
"/Volumes/GoogleDrive/Shared drives/ASH Student Cumulative Folders/Student Cumulative Folders (AKA Student Portfolios)TYPO!" does not appear to exist on Google Drive. Choose a different Drive and folder.
- Google Shared Drive that does not contain
sentryFile_DO_NOT_REMOVE.txt
:This does not appear to be the correct folder for Cumulative Student Folders...
In the event that the sentryFile_DO_NOT_REMOVE.txt
is not found, double check the following:
- The appropriate google shared drive is chosen
- The proper folder within the drive is chosen and contains
sentryFile_DO_NOT_REMOVE.txt
If the sentry file is has been deleted or is otherwise missing, a new file can be created by running the following command from the terminal. This command must be run from an account that has FileStream running and with access to the shared drive. It is critical that you double, tripple and quadruple check that this is actually the correct drive and folder before proceeding.
$ touch /Volumes/GoogleDrive/Shared drives/DRIVE NAME/FOLDER NAME/sentryFile_DO_NOT_REMOVE.txt
The help button provides a brief version of this document.
Exit the program.
More debugging features are available on the command line. createFolders will accept student.export files with the -s [file]
option.
$ ./createFolders -h
usage: createFolders [-h] [-s /path/to/student.export.csv]
[-g /Volumes/GoogleDrive/Shared drives/ASH Cum Folders/folder/]
[-l ERROR, WARNING, INFO, DEBUG] [-v] [--more_help]
optional arguments:
-h, --help show this help message and exit
-s /path/to/student.export.csv, --student_export /path/to/student.export.csv
Export from PowerSchool containing: LastFirst,
ClassOf, Student_Number
-g /Volumes/GoogleDrive/Shared drives/ASH Cum Folders/folder/, --google_drive /Volumes/GoogleDrive/Shared drives/ASH Cum Folders/folder/
Full path to Google Drive Shared Drive containing
cumulative files
-l ERROR, WARNING, INFO, DEBUG, --log_level ERROR, WARNING, INFO, DEBUG
Logging level -- Default: WARNING
-v, --version Print version number and exit
--more_help Print extened help and exit
This error indicates that the program was not created by an "official" developer. In this case, this is not a problem. Take the following steps to run the program:
- Locate the program file (likely in your
Applications
folder) - Right-click or ctrl-click on the file and choose "Open"
- A pop-up window will likely appear -- if no pop-up appears, no further action is needed
- Read the text and choose "Open" -- this will permenently allow you to open this application by double clicking on the icon
- If you download a new version of the application, you may need to repeat these steps
createFolders needs to know both which Google Shared Drive to use and the folder where Student Cumulative Folders are stored. The first time you run createFolders, it will ask you to choose the appropriate drive and folder.
- Click "Browse" to open a folder chooser window
- If FileStream is active and working properly, you will be automatically directed to the Google Drives available to you.
- Double click the "Shared drives" folder and locate the appropriate folder
- This is likely called
ASH Student Cumulative Folders
or something similar
- This is likely called
- Locate the folder within the shared drive that contains cumulative folders and click on it
- This is likely called
Student Cumulative Folders (AKA Student Portfolios)
- This is likely called
- Click "Choose" to select the folder to return back to createFolders
- Click "OK" to accept the shared drive
- createFolders works very hard to ensure you have selected the appropriate drive and will try to prevent you from using an improper folder.
- You can always change this folder later if you have made a mistake
- Click "Process File" to begin processing a student.export file
Google FileStream is required for createFolders. The user must be signed in with an account that has write permissions to the Student Cumulative folders drive. As of September 2020, users must have the Manager attribute on a Google Shared Drive to create folders in Google Filestream.
- Download Google FileStream and run the installer.
- Launch Google FileStream if it is not running (look for the icon in the menu bar) and click "Sign in"
- Use your @ash.nl credentials for an account that has access to the cumulative folders drive.
- You will likely be asked to sign in using your two-step verification; this is normal
- Click on the filestream icon in the menu bar and click on the folder icon to view your google drive files
- It may take several minutes before your folders and files are all visible
- Browse to the
Shared drives
and locate theASH Student Cumulative Folders
drive to confirm you have access- If you do not have access, you have likely used an account that does not have permissions. Sign out and try again.
To completely uninstall the application do the following:
- Remove the executable
createFolders
application - From the terminal run
$ rm -rf ~/.config/com.txoof.createFolders
The first time you run the Portfolio Creator application you will need to take some special steps:
- Make sure Google FileStream installed and you are signed in!
- Download the latest version from here
- Locate and unpack the applicaton in your Downloads folder
- Double click to unzip
- Move into your Applications folder
- Right click on the createFolders application icon and choose "Open"
- Click "Process File" to get started
- If this is the very first time you have run the application it will ask you to choose the Google Shared Drive and the FOLDER where portfolio/cummulative files are stored.
- Click the "Browse" button and find the Google Shared drive likely called ASH Student Cumulative Folders
- Within the ASH Student Cumulative Folders drive locate the folder that contains the folder Student Cumulative Folders (AKA Student Portfolios) and click "Choose" then click "Ok" to accept the drive and folder.
- If there are any problems, the applicaiton will warn you and stop you from proceeding
- See Choosing the Shared Drive and Cumulative Student Folder for screenshots and more information
- Create an export from powerschool
- Click "Process File" to process a student export
- Review the processed files and correct any errors
# !alias mdc /Users/aaronciuffo/bin/develtools/mdconvert README.ipynb
!jupyter-nbconvert --to markdown README.ipynb
[NbConvertApp] Converting notebook README.ipynb to markdown
[NbConvertApp] Writing 13203 bytes to README.md